summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorHans Johnson <hans-johnson@uiowa.edu>2016-07-28 10:47:30 -0500
committerHans Johnson <hans-johnson@uiowa.edu>2016-07-28 19:25:15 -0500
commit821d2f0db70d4cb668c114b00da9eeb6ccc27e4a (patch)
treeadb9671741a7abbd9eb53682d1789a85c98c0847 /.travis.yml
parent44ef9da070628a2ff7bf63afca60d0ebe0ed7875 (diff)
downloadlapack-821d2f0db70d4cb668c114b00da9eeb6ccc27e4a.tar.gz
lapack-821d2f0db70d4cb668c114b00da9eeb6ccc27e4a.tar.bz2
lapack-821d2f0db70d4cb668c114b00da9eeb6ccc27e4a.zip
ENH: Improving the travis dashboard name
When submitting to the dashboard, it is nice to have the patch set name included. Thanks to: http://graysonkoonce.com/getting-the-current-branch-name-during-a-pull-request-in-travis-ci/
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index d1b3cc62..95e82367 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,6 +14,9 @@ os:
- osx
script:
+ - export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
+ - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
+ - echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- export SRC_DIR=$(pwd)
- export BLD_DIR=${SRC_DIR}/../lapack-travis-bld
- export INST_DIR=${SRC_DIR}/../lapack-travis-install
@@ -21,7 +24,7 @@ script:
- cd ${BLD_DIR}
# See issue #17 on github dashboard. Once resolved, use -DCBLAS=ON
# - cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR}
- - cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR}
+ - cmake -DBUILDNAME:STRING="travis-${TRAVIS_OS_NAME}-${BRANCH}" -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR}
- ctest -D ExperimentalStart
- ctest -D ExperimentalConfigure
- ctest -D ExperimentalBuild -j2