.travis.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. dist: trusty
  2. sudo: required
  3. language: c
  4. cache: ccache
  5. git:
  6. submodules: false
  7. before_install:
  8. - if [ -n "$COVERALLS" ]; then
  9. pip install --user cpp-coveralls;
  10. fi;
  11. - if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
  12. git submodule update --init --recursive;
  13. fi;
  14. addons:
  15. apt:
  16. packages:
  17. - ccache
  18. - golang-1.6
  19. os:
  20. - linux
  21. compiler:
  22. - clang
  23. - gcc
  24. env:
  25. - CONFIG_OPTS="" DESTDIR="_install" TESTS="-test_fuzz"
  26. - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2" TESTS="-test_fuzz"
  27. - CONFIG_OPTS="no-asm --strict-warnings" BUILDONLY="yes" CHECKDOCS="yes"
  28. matrix:
  29. include:
  30. - os: linux
  31. addons:
  32. apt:
  33. packages:
  34. - gcc-5
  35. - g++-5
  36. sources:
  37. - ubuntu-toolchain-r-test
  38. compiler: gcc-5
  39. env: CONFIG_OPTS="--strict-warnings enable-tls1_3" TESTS="-test_fuzz" COMMENT="Move to the BORINGTEST build when interoperable"
  40. - os: linux
  41. addons:
  42. apt:
  43. packages:
  44. - clang-3.9
  45. sources:
  46. - llvm-toolchain-trusty-3.9
  47. - ubuntu-toolchain-r-test
  48. compiler: clang-3.9
  49. env: CONFIG_OPTS="--strict-warnings no-deprecated" BUILDONLY="yes"
  50. - os: linux
  51. addons:
  52. apt:
  53. packages:
  54. - binutils-mingw-w64
  55. - gcc-mingw-w64
  56. compiler: i686-w64-mingw32-gcc
  57. env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
  58. - os: linux
  59. addons:
  60. apt:
  61. packages:
  62. - gcc-5
  63. - g++-5
  64. sources:
  65. - ubuntu-toolchain-r-test
  66. compiler: gcc-5
  67. env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug --coverage no-asm enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-ssl3 enable-ssl3-method enable-nextprotoneg enable-weak-ssl-ciphers enable-external-tests no-shared -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" COVERALLS="yes" BORINGSSL_TESTS="yes" CXX="g++-5"
  68. - os: linux
  69. addons:
  70. apt:
  71. packages:
  72. - clang-3.9
  73. sources:
  74. - llvm-toolchain-trusty-3.9
  75. - ubuntu-toolchain-r-test
  76. compiler: clang-3.9
  77. env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan"
  78. - os: linux
  79. addons:
  80. apt:
  81. packages:
  82. - clang-3.9
  83. sources:
  84. - llvm-toolchain-trusty-3.9
  85. - ubuntu-toolchain-r-test
  86. compiler: clang-3.9
  87. env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg -fno-sanitize=alignment no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
  88. - os: linux
  89. addons:
  90. apt:
  91. packages:
  92. - clang-3.9
  93. sources:
  94. - llvm-toolchain-trusty-3.9
  95. - ubuntu-toolchain-r-test
  96. compiler: clang-3.9
  97. env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2 no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
  98. - os: linux
  99. addons:
  100. apt:
  101. packages:
  102. - gcc-5
  103. - g++-5
  104. sources:
  105. - ubuntu-toolchain-r-test
  106. compiler: gcc-5
  107. env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
  108. - os: linux
  109. addons:
  110. apt:
  111. packages:
  112. - binutils-mingw-w64
  113. - gcc-mingw-w64
  114. compiler: i686-w64-mingw32-gcc
  115. env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" TESTS="-test_fuzz"
  116. - os: linux
  117. addons:
  118. apt:
  119. packages:
  120. - binutils-mingw-w64
  121. - gcc-mingw-w64
  122. compiler: x86_64-w64-mingw32-gcc
  123. env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" TESTS="-test_fuzz"
  124. exclude:
  125. - os: linux
  126. compiler: clang
  127. - os: osx
  128. compiler: gcc
  129. before_script:
  130. - env
  131. - if [ "$TRAVIS_EVENT_TYPE" == "pull_request" -a -n "$EXTENDED_TEST" ]; then
  132. (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || exit 0;
  133. fi
  134. - if [ -n "$DESTDIR" ]; then
  135. sh .travis-create-release.sh $TRAVIS_OS_NAME;
  136. tar -xvzf _srcdist.tar.gz;
  137. mkdir _build;
  138. cd _build;
  139. srcdir=../_srcdist;
  140. top=..;
  141. else
  142. srcdir=.;
  143. top=.;
  144. fi
  145. - if [ "$CC" == i686-w64-mingw32-gcc ]; then
  146. export CROSS_COMPILE=${CC%%gcc}; unset CC;
  147. $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
  148. elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
  149. export CROSS_COMPILE=${CC%%gcc}; unset CC;
  150. $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
  151. else
  152. if which ccache >/dev/null && [ "$CC" != clang-3.9 ]; then
  153. CC="ccache $CC";
  154. fi;
  155. $srcdir/config -v $CONFIG_OPTS;
  156. fi
  157. - cd $top
  158. script:
  159. - if [ -z "$BUILDONLY" ]; then
  160. make="make -s";
  161. else
  162. make="make";
  163. fi
  164. - top=${PWD}
  165. - if [ -n "$DESTDIR" ]; then
  166. cd _build;
  167. fi
  168. - $make update
  169. - if [ -n "$CHECKDOCS" ]; then
  170. $make doc-nits;
  171. fi
  172. - $make
  173. - if [ -z "$BUILDONLY" ]; then
  174. if [ -n "$CROSS_COMPILE" ]; then
  175. sudo dpkg --add-architecture i386;
  176. sudo apt-get update;
  177. sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
  178. export EXE_SHELL="wine" WINEPREFIX=`pwd`;
  179. fi;
  180. HARNESS_VERBOSE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test;
  181. else
  182. $make build_tests;
  183. fi
  184. - if [ -n "$DESTDIR" ]; then
  185. mkdir "$top/$DESTDIR";
  186. $make install install_docs DESTDIR="$top/$DESTDIR";
  187. fi
  188. - cd $top
  189. after_success:
  190. - if [ -n "$COVERALLS" ]; then
  191. coveralls -b . --gcov gcov-5 --gcov-options '\-lp';
  192. fi;
  193. notifications:
  194. email:
  195. secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="