Skip to content
Snippets Groups Projects
Commit f4f981a2 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Update release script

parent ca287a2f
No related branches found
No related tags found
No related merge requests found
...@@ -10,14 +10,15 @@ if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ ]]; then ...@@ -10,14 +10,15 @@ if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ ]]; then
# Change the version in package.json and test file # Change the version in package.json and test file
sed -i "s/version\": \"$current/version\": \"$2/g" package.json sed -i "s/version\": \"$current/version\": \"$2/g" package.json
sed -i "s/version').equal('.*/version').equal('$2');/g" test/integration/branches.js sed -i "s/version').equal('.*/version').equal('$2');/g" test/integration/branches.js
sed -i "s/ release: .*/ release: $2/g" appveyor.yml
if [[ "$1" =~ ^rel$ ]]; then if [[ "$1" =~ ^rel$ ]]; then
# This is RELEASE: change the version in public installer + add the RELEASE flag # This is RELEASE: change the version in public installer + add the RELEASE flag
sed -i "s/echo \"v.*\"/echo \"v$2\"/g" install.sh sed -i "s/echo \"v.*\"/echo \"v$2\"/g" install.sh
sed -i "s/.*prerelease: true/# prerelease: true/g" .travis.yml sed -i "s/.*prerelease: true/# prerelease: true/g" .travis.yml appveyor.yml
fi fi
if [[ "$1" =~ ^pre$ ]]; then if [[ "$1" =~ ^pre$ ]]; then
# This is RELEASE: just change the RELEASE flag to PRERELEASE # This is RELEASE: just change the RELEASE flag to PRERELEASE
sed -i "s/# prerelease: true/ prerelease: true/g" .travis.yml sed -i "s/# prerelease: true/ prerelease: true/g" .travis.yml appveyor.yml
fi fi
;; ;;
*) *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment