Merge pull request #24 from vladimir-ch/master
[platform/upstream/lapack.git] / .travis.yml
1 language: cpp
2
3 addons:
4   apt:
5     sources:
6       - george-edison55-precise-backports # cmake
7     packages:
8       - cmake
9       - cmake-data
10       - gfortran
11
12 os:
13   - linux
14   - osx
15
16 script:
17   - export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
18   - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
19   - echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
20   - export SRC_DIR=$(pwd)
21   - export BLD_DIR=${SRC_DIR}/../lapack-travis-bld
22   - export INST_DIR=${SRC_DIR}/../lapack-travis-install
23   - mkdir -p ${BLD_DIR}
24   - cd ${BLD_DIR}
25 # See issue #17 on github dashboard.  Once resolved, use -DCBLAS=ON
26 #  - cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR}
27   - cmake -DBUILDNAME:STRING="travis-${TRAVIS_OS_NAME}-${BRANCH}" -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE:BOOL=ON -DLAPACKE_WITH_TMG:BOOL=ON ${SRC_DIR}
28   - ctest -D ExperimentalStart
29   - ctest -D ExperimentalConfigure
30   - ctest -D ExperimentalBuild -j2
31   - ctest -D ExperimentalTest --schedule-random -j2 --output-on-failure --timeout 100
32   - ctest -D ExperimentalSubmit
33   - make install -j2