Update 'dev' tag on success

pull/101/head
Olivier Martin 2019-05-19 10:23:42 +02:00
parent ca9725f806
commit 3a1e92ae5d
2 changed files with 9 additions and 0 deletions

View File

@ -69,6 +69,9 @@ script:
- cmake -DGATTLIB_FORCE_DBUS=TRUE -DCMAKE_BUILD_TYPE=Release .. && make VERBOSE=1 && cpack ..
- popd
after_success:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then ./update-dev-tag.sh; fi
before_deploy:
# Create directory to store the artifacts we want to deploy
- mkdir artifacts

6
update-dev-tag.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
git config --global user.email "olivier@labapart.com"
git config --global user.name "Olivier Martin"
git tag -f dev -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
git push --quiet https://${GITHUB_OAUTH_TOKEN}@github.com/labapart/gattlib --force dev > /dev/null 2>&1