.travis.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # Use, modification, and distribution are
  2. # subject to the Boost Software License, Version 1.0. (See accompanying
  3. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #
  5. # Copyright Rene Rivera 2015-2016.
  6. # Copyright Peter Dimov 2017-2021.
  7. branches:
  8. only:
  9. - master
  10. - develop
  11. - /feature\/.*/
  12. dist: bionic
  13. language: cpp
  14. compiler: gcc
  15. git:
  16. submodules: false
  17. env:
  18. matrix:
  19. - TRAVIS_EMPTY_JOB_WORKAROUND=true
  20. matrix:
  21. exclude:
  22. - env: TRAVIS_EMPTY_JOB_WORKAROUND=true
  23. include:
  24. - env: SCRIPT=ci_boost_release MODE=check
  25. addons:
  26. apt:
  27. packages:
  28. - xsltproc
  29. # Simple integrated status tests check.
  30. - env: SCRIPT=ci_boost_status
  31. # Same, but using release layout
  32. - env: SCRIPT=ci_boost_status RELEASE=1
  33. # Run 'quick' tests.
  34. - env: SCRIPT=ci_boost_status TARGET=quick TOOLSET=gcc CXXSTD=03,11,14
  35. compiler: g++
  36. - env: SCRIPT=ci_boost_status TARGET=quick TOOLSET=clang CXXSTD=03,11,14
  37. compiler: clang++
  38. # Build Boost
  39. - env: SCRIPT=ci_boost_build TOOLSET=gcc
  40. compiler: g++
  41. # Build Boost with release layout
  42. - env: SCRIPT=ci_boost_build TOOLSET=gcc RELEASE=1
  43. compiler: g++
  44. # Build Boost with CMake
  45. - env: CMAKE_BUILD=1
  46. dist: xenial
  47. compiler: g++
  48. before_script: true
  49. before_install: true
  50. after_success: true
  51. after_failure: true
  52. after_script: true
  53. addons:
  54. apt:
  55. packages:
  56. - libzstd-dev
  57. install:
  58. - git submodule update --init --jobs 3
  59. script:
  60. - mkdir __build && cd __build
  61. - cmake -DBOOST_INSTALL_LAYOUT=tagged -DBUILD_SHARED_LIBS=ON ..
  62. - cmake --build .
  63. # Install Boost with CMake
  64. - env: CMAKE_INSTALL=1
  65. compiler: g++
  66. before_script: true
  67. before_install: true
  68. after_success: true
  69. after_failure: true
  70. after_script: true
  71. install:
  72. - pip install --user cmake
  73. - git submodule update --init --jobs 3
  74. script:
  75. - mkdir __build && cd __build
  76. - cmake -DBOOST_INSTALL_LAYOUT=tagged -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=~/.local ..
  77. - cmake --build .
  78. - cmake --build . --target install
  79. # Test Boost with CMake
  80. - env: CMAKE_TEST=1
  81. dist: bionic
  82. compiler: g++
  83. before_script: true
  84. before_install: true
  85. after_success: true
  86. after_failure: true
  87. after_script: true
  88. addons:
  89. apt:
  90. packages:
  91. - liblzma-dev
  92. - libzstd-dev
  93. install:
  94. - git submodule update --init --jobs 3
  95. script:
  96. - mkdir __build && cd __build
  97. - cmake -DBUILD_TESTING=ON ..
  98. - cmake --build . -j 3
  99. - cmake --build . --target tests -j 3 -- -k
  100. - ctest --output-on-failure -j 3 -R quick
  101. before_install:
  102. # Fetch the scripts to do the actual building/testing.
  103. - git submodule update --init --jobs 3
  104. - |
  105. wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_common.py" -P ..
  106. wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/${SCRIPT}.py" -P ..
  107. install: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" install
  108. before_script: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" before_script
  109. script: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" script
  110. after_success: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" after_success
  111. after_failure: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" after_failure
  112. after_script: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" after_script
粤ICP备19079148号