diff --git a/scripts/mirror.sh b/scripts/mirror.sh index a6aa5bdac..bd29e555b 100755 --- a/scripts/mirror.sh +++ b/scripts/mirror.sh @@ -62,24 +62,6 @@ if [ "$TRAVIS_BRANCH" == 'master' ]; then git push origin HEAD:$TRAVIS_BRANCH fi -VERSION=`jq -r '.versionname' src/config.json` -if [ "$TRAVIS_BRANCH" == 'integration' ] && [ "$VERSION" != *-dev ] ; then - VERSION=$VERSION-dev - - jq -r --indent 4 --arg version "$VERSION" -s '.[0] + {versionname: $version}' src/config.json > src/config_new.json - mv src/config_new.json src/config.json - - sed -ie "s/version[ ]*=[ ]*\"[0-9\.]*\">/version=\"$VERSION\">/1" config.xml - - git remote set-url origin https://$GIT_TOKEN@github.com/$TRAVIS_REPO_SLUG.git - git fetch -q origin - - git add src/config.json - git commit -m 'Change config version [ci skip]' - - git push origin HEAD:$TRAVIS_BRANCH -fi - if [ "$TRAVIS_BRANCH" == 'integration' ] || [ "$TRAVIS_BRANCH" == 'master' ] || [ "$TRAVIS_BRANCH" == 'desktop' ] ; then print_title "Mirror repository" git remote add mirror https://$GIT_TOKEN@github.com/$GIT_ORG_PRIVATE/moodleapp.git diff --git a/src/config.json b/src/config.json index 3edf1ced3..245bd890e 100644 --- a/src/config.json +++ b/src/config.json @@ -3,7 +3,7 @@ "appname": "Moodle Mobile", "desktopappname": "Moodle Desktop", "versioncode": 3820, - "versionname": "3.8.2-dev-dev", + "versionname": "3.8.2-dev", "cache_update_frequency_usually": 420000, "cache_update_frequency_often": 1200000, "cache_update_frequency_sometimes": 3600000,