Skip to content

Commit

Permalink
Merge pull request #293 from NoelDeMartin/app-ionic7
Browse files Browse the repository at this point in the history
Fall back to ionic7 app runtime
  • Loading branch information
stronk7 authored Jul 1, 2024
2 parents ffb971f + 16fbaa9 commit fa8f9c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ jobs:
- { branch: MOODLE_402_STABLE, php: "8.0", suite: app, app-version: "latest-test" }
- { branch: MOODLE_401_STABLE, php: "8.1", suite: app, app-version: "latest-test" }
- { branch: MOODLE_401_STABLE, php: "7.4", suite: app, app-version: "latest-test" }
- { branch: MOODLE_400_STABLE, php: "8.0", suite: app, app-version: "latest-test" }
- { branch: MOODLE_400_STABLE, php: "7.3", suite: app, app-version: "latest-test" }
- { branch: MOODLE_311_STABLE, php: "8.0", suite: app, app-version: "latest-test" }
- { branch: MOODLE_311_STABLE, php: "7.3", suite: app, app-version: "latest-test" }
- { branch: MOODLE_400_STABLE, php: "8.0", suite: app, app-version: "4.3.0-test" }
- { branch: MOODLE_400_STABLE, php: "7.3", suite: app, app-version: "4.3.0-test" }
- { branch: MOODLE_311_STABLE, php: "8.0", suite: app, app-version: "4.3.0-test" }
- { branch: MOODLE_311_STABLE, php: "7.3", suite: app, app-version: "4.3.0-test" }

steps:
- name: Checking out moodle-docker
Expand Down
8 changes: 1 addition & 7 deletions bin/moodle-docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,7 @@ then
export MOODLE_DOCKER_APP_RUNTIME="ionic5"
fi
else
# TODO always default to ionic7 after 4.4.0 release
if [[ $appversion = "latest"* ]];
then
export MOODLE_DOCKER_APP_RUNTIME="ionic5"
else
export MOODLE_DOCKER_APP_RUNTIME="ionic7"
fi
export MOODLE_DOCKER_APP_RUNTIME="ionic7"
fi
fi
fi
Expand Down
8 changes: 5 additions & 3 deletions tests/app-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ then
docker run --volume $basedir/app:/app --workdir /app node:$nodeversion bash -c "npm ci"
elif [ "$SUITE" = "app" ];
then
isdevelop=`echo $MOODLE_DOCKER_APP_VERSION | grep -E -o "(next)|(latest)"`
branch=`echo $MOODLE_DOCKER_APP_VERSION | grep -P -o "next|latest|\d\.\d\.\d"`

branch="latest"
if [ "$isdevelop" = "next" ];
if [ "$branch" = "next" ];
then
branch="main"
elif [ "$branch" != "latest" ];
then
branch="v$branch"
fi

git clone --branch "$branch" --depth 1 https://github.com/moodlehq/moodle-local_moodleappbehat $basedir/moodle/local/moodleappbehat
Expand Down

0 comments on commit fa8f9c4

Please sign in to comment.