]> granicus.if.org Git - graphviz/commitdiff
Fix Travis deployment
authorErwin Janssen <erwinjanssen@outlook.com>
Wed, 14 Sep 2016 16:18:36 +0000 (18:18 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Fri, 16 Sep 2016 15:35:36 +0000 (17:35 +0200)
Because of the use of `sudo` the created file is owned by root and the default travis user has no permission to deploy it. Using `chown` fixes this.
Also added a condition on the deploy, so only one file gets deployed.

.travis.yml

index e7f351ee5dfb4eaf991d07fb80af103e800c1584..78debcf039aaebd9bfa42677f230462483197350 100644 (file)
@@ -40,6 +40,8 @@ script:
 before_deploy:
 - export DEPLOYED_FILE=$(ls *.tar.gz)
 - echo "deploying ${DEPLOYED_FILE} to GitHub releases"
+- sudo chown travis ${DEPLOYED_FILE}
+
 deploy:
   provider: releases
   api_key:
@@ -48,3 +50,4 @@ deploy:
   file: "${DEPLOYED_FILE}"
   on:
     repo: ellson/graphviz
+    condition: ${DOCKER_BUILD} == "FALSE"