You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.travis.yml 1.8 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. language: c
  2. dist: xenial
  3. group: travis_latest
  4. git:
  5. depth: 3
  6. quiet: true
  7. addons:
  8. apt:
  9. packages:
  10. - gfortran
  11. matrix:
  12. include:
  13. - os: linux
  14. env: CMAKE_BUILD_TYPE=Release
  15. - os: linux
  16. env: CMAKE_BUILD_TYPE=Coverage
  17. - os: osx
  18. env: CMAKE_BUILD_TYPE=Release
  19. before_install:
  20. - brew update > /dev/null
  21. - brew install gcc > /dev/null
  22. - os: osx
  23. env: CMAKE_BUILD_TYPE=Coverage
  24. before_install:
  25. - brew update > /dev/null
  26. - brew install gcc > /dev/null
  27. script:
  28. - export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
  29. - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
  30. - echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
  31. - export SRC_DIR=$(pwd)
  32. - export BLD_DIR=${SRC_DIR}/lapack-travis-bld
  33. - export INST_DIR=${SRC_DIR}/../lapack-travis-install
  34. - mkdir -p ${BLD_DIR}
  35. - cd ${BLD_DIR}
  36. # See issue #17 on github dashboard. Once resolved, use -DCBLAS=ON
  37. # - cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR}
  38. - cmake -DBUILDNAME:STRING="travis-${TRAVIS_OS_NAME}-${BRANCH}"
  39. -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
  40. -DCMAKE_INSTALL_PREFIX=${INST_DIR}
  41. -DCBLAS:BOOL=ON
  42. -DLAPACKE:BOOL=ON
  43. -DBUILD_TESTING=ON
  44. -DLAPACKE_WITH_TMG:BOOL=ON
  45. ${SRC_DIR}
  46. - ctest -D ExperimentalStart
  47. - ctest -D ExperimentalConfigure
  48. - ctest -D ExperimentalBuild -j2
  49. - ctest -D ExperimentalTest --schedule-random -j2 --output-on-failure --timeout 100
  50. - ctest -D ExperimentalSubmit
  51. - make install -j2
  52. - if [[ "$CMAKE_BUILD_TYPE" == "Coverage" ]];
  53. then
  54. echo "Coverage";
  55. make coverage;
  56. bash <(curl -s https://codecov.io/bash) -X gcov;
  57. fi