]> granicus.if.org Git - libjpeg-turbo/commitdiff
Travis: use correct repo/branch for off. builds
authorDRC <information@libjpeg-turbo.org>
Wed, 5 Oct 2016 19:36:46 +0000 (14:36 -0500)
committerDRC <information@libjpeg-turbo.org>
Wed, 5 Oct 2016 19:36:46 +0000 (14:36 -0500)
Pass the actual repository and branch that Travis is using into the
builtljt script, so the official builds it generates will come from
the same code base as the other tested builds.

.travis.yml

index 0a7c2f4e76c0a1bad27631bb13113b4e2cef90f1..3619da52bb6e8b62026145ea75ff7c266bdc4a9d 100644 (file)
@@ -56,10 +56,10 @@ script:
   - if [ "${BUILD_OFFICIAL:-}" != "" ]; then
       mkdir -p ~/src/ljt.nightly &&
       if [ "$TRAVIS_OS_NAME" = "linux" ]; then
-        docker run -v $HOME/src/ljt.nightly:/root/src/ljt.nightly -v $HOME/src/buildscripts:/root/src/buildscripts -t dcommander/buildljt:latest bash -c "~/src/buildscripts/buildljt -v" &&
+        docker run -v $HOME/src/ljt.nightly:/root/src/ljt.nightly -v $HOME/src/buildscripts:/root/src/buildscripts -t dcommander/buildljt:latest bash -c "~/src/buildscripts/buildljt -r https://github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_BRANCH -v" &&
         sudo chown -R travis:travis ~/src/ljt.nightly;
       else
-        PATH=$PATH:~/src/gas-preprocessor ~/src/buildscripts/buildljt -v;
+        PATH=$PATH:~/src/gas-preprocessor ~/src/buildscripts/buildljt -r https://github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_BRANCH -v;
       fi;
     fi
   - if [ "${BUILD_OFFICIAL:-}" == "" ]; then