]> granicus.if.org Git - graphviz/commitdiff
Enhanced Travis Nightly Release
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 5 Dec 2016 01:58:01 +0000 (02:58 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Mon, 5 Dec 2016 01:58:01 +0000 (02:58 +0100)
Instead of publishing a new release with an "untagged" name on every
Travis build, this configuration will deploy all these nightlies to a
special Nightly release tag.

.travis.yml

index 78debcf039aaebd9bfa42677f230462483197350..0e445a262f5f80fe0fb28c902fca1ed980222eba 100644 (file)
@@ -42,6 +42,9 @@ before_deploy:
 - echo "deploying ${DEPLOYED_FILE} to GitHub releases"
 - sudo chown travis ${DEPLOYED_FILE}
 
+# If no tag is set, deploy as nightly
+- if [ !${TRAVIS_TAG} ] ; then export TRAVIS_TAG=Nightly ; fi
+
 deploy:
   provider: releases
   api_key: