A local copy of OpenSSL from GitHub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

254 lines
11 KiB

  1. dist: bionic
  2. osx_image: xcode9.3
  3. language: c
  4. cache: ccache
  5. git:
  6. submodules: false
  7. quiet: true
  8. before_install:
  9. - if [ -n "$COVERALLS" ]; then
  10. travis_retry pip install --user cpp-coveralls;
  11. fi;
  12. - if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
  13. travis_retry git submodule update --init --recursive;
  14. fi;
  15. - eval "${MATRIX_EVAL}"
  16. arch:
  17. - amd64
  18. os:
  19. - linux
  20. - osx
  21. compiler:
  22. - clang
  23. - gcc
  24. env:
  25. # Note: env entry here must exactly match the value in the exclude: table below that contains env:, otherwise it will not find a match.
  26. - CONFIG_OPTS="" DESTDIR="_install"
  27. - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1"
  28. - CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi"
  29. jobs:
  30. exclude:
  31. - os: linux
  32. compiler: clang
  33. env: CONFIG_OPTS="" DESTDIR="_install"
  34. - os: linux
  35. compiler: clang
  36. env: CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi"
  37. - os: osx
  38. compiler: gcc
  39. - os: osx
  40. env: CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1"
  41. include:
  42. - os: linux
  43. arch: arm64
  44. compiler: gcc
  45. env: CONFIG_OPTS="--strict-warnings" MAKEVERBOSE="yes"
  46. - os: linux
  47. arch: arm64
  48. compiler: gcc
  49. env: CONFIG_OPTS="no-asm no-deprecated enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" CPPFLAGS="-ansi"
  50. - os: linux
  51. arch: s390x
  52. compiler: gcc
  53. env: CONFIG_OPTS="--strict-warnings"
  54. - os: linux-ppc64le
  55. compiler: gcc
  56. env: CONFIG_OPTS="--strict-warnings"
  57. - os: linux
  58. compiler: gcc
  59. env: CONFIG_OPTS="--strict-warnings no-ec enable-trace enable-ssl-trace enable-zlib enable-zlib-dynamic enable-crypto-mdebug enable-crypto-mdebug-backtrace enable-egd" COMMENT="Move to the BORINGTEST build when interoperable"
  60. - os: linux
  61. dist: trusty
  62. compiler: clang
  63. env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES"
  64. - os: linux
  65. dist: xenial
  66. compiler: gcc
  67. env: CONFIG_OPTS="--strict-warnings no-deprecated enable-rc5 enable-md2"
  68. - os: linux
  69. addons:
  70. apt:
  71. packages:
  72. - binutils-mingw-w64
  73. - gcc-mingw-w64
  74. compiler: i686-w64-mingw32-gcc
  75. env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
  76. - os: linux
  77. addons:
  78. apt:
  79. packages:
  80. - golang-1.10
  81. compiler: gcc
  82. 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 no-shared enable-buildtest-c++ -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" COVERALLS="yes" BORINGSSL_TESTS="yes" CXX="g++"
  83. - os: linux
  84. addons:
  85. apt:
  86. packages:
  87. - golang-1.10
  88. compiler: gcc
  89. # External test pyca-cryptography temporarily disabled due to long term travis failures
  90. env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-external-tests enable-buildtest-c++" BORINGSSL_TESTS="yes" CXX="g++" TESTS="test_external_boringssl test_external_krb5"
  91. - os: linux
  92. compiler: clang
  93. env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -Wno-unused-command-line-argument"
  94. - os: linux
  95. compiler: clang
  96. env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg no-shared enable-buildtest-c++ -fno-sanitize=alignment -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -Wno-unused-command-line-argument" CXX="clang++"
  97. - os: linux
  98. compiler: gcc
  99. env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 enable-buildtest-c++ -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
  100. - os: linux
  101. dist: xenial
  102. addons:
  103. apt:
  104. packages:
  105. - binutils-mingw-w64
  106. - gcc-mingw-w64
  107. compiler: i686-w64-mingw32-gcc
  108. env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
  109. - os: linux
  110. dist: xenial
  111. addons:
  112. apt:
  113. packages:
  114. - binutils-mingw-w64
  115. - gcc-mingw-w64
  116. compiler: x86_64-w64-mingw32-gcc
  117. env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
  118. - os: linux
  119. language: python
  120. python: 3.7
  121. install: pip install flake8
  122. before_script:
  123. # stop the build if there are Python syntax errors or undefined names
  124. - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
  125. # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
  126. - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
  127. script: true
  128. - os: linux
  129. compiler: gcc
  130. env: CONFIGURE_TARGET="linux-generic32" CONFIG_OPTS="--strict-warnings no-shared no-dso no-pic no-aria no-async no-autoload-config no-blake2 no-bf no-camellia no-cast no-chacha no-cmac no-cms no-cmp no-comp no-ct no-des no-dgram no-dh no-dsa no-dtls no-ec2m no-engine no-filenames no-gost no-idea no-ktls no-mdc2 no-md4 no-multiblock no-nextprotoneg no-ocsp no-ocb no-poly1305 no-psk no-rc2 no-rc4 no-rmd160 no-seed no-siphash no-siv no-sm2 no-sm3 no-sm4 no-srp no-srtp no-ssl3 no-ssl3-method no-ts no-ui-console no-whirlpool no-asm -DOPENSSL_NO_SECURE_MEMORY -DOPENSSL_SMALL_FOOTPRINT"
  131. before_script:
  132. - env
  133. - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
  134. (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || travis_terminate 0;
  135. fi
  136. - if [ -n "$DESTDIR" ]; then
  137. sh .travis-create-release.sh $TRAVIS_OS_NAME;
  138. tar -xzf _srcdist.tar.gz;
  139. mkdir -p _build/tree;
  140. cd _build/tree;
  141. srcdir=../../_srcdist;
  142. top=../..;
  143. else
  144. srcdir=.;
  145. top=.;
  146. fi
  147. - if [ "$CC" = i686-w64-mingw32-gcc ]; then
  148. export CROSS_COMPILE=${CC%%gcc}; unset CC;
  149. $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
  150. elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then
  151. export CROSS_COMPILE=${CC%%gcc}; unset CC;
  152. $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
  153. else
  154. if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then
  155. CC="ccache $CC";
  156. fi;
  157. if [ -n "$CONFIGURE_TARGET" ]; then
  158. $srcdir/Configure $CONFIGURE_TARGET $CONFIG_OPTS;
  159. else
  160. $srcdir/config -v $CONFIG_OPTS;
  161. fi;
  162. fi
  163. - ./configdata.pm --dump
  164. - cd $top
  165. script:
  166. - if [ -z "$BUILDONLY" ] && [ -z "$MAKEVERBOSE" ] ; then
  167. make="make -s";
  168. else
  169. make="make";
  170. fi
  171. - if [ -n "$GENERATE" ]; then
  172. make2="$make PERL=no-perl";
  173. else
  174. make2="$make";
  175. fi
  176. - top=${PWD}
  177. - if [ -n "$DESTDIR" ]; then
  178. cd _build/tree;
  179. fi
  180. - if ! $make update; then
  181. echo -e '\052\052 FAILED -- MAKE UPDATE';
  182. travis_terminate 1;
  183. fi
  184. - if ! git diff --exit-code; then
  185. echo -e '\052\052 FAILED -- UPDATED FILES NOT COMMITTED';
  186. travis_terminate 1;
  187. fi
  188. - if test -n "$GENERATE" && ! $make build_all_generated; then
  189. echo -e '\052\052 FAILED -- MAKE BUILD_ALL_GENERATED';
  190. travis_terminate 1;
  191. fi
  192. - if test -n "$CHECKDOCS" && ! $make doc-nits; then
  193. echo -e '\052\052 FAILED -- MAKE DOC-NITS';
  194. travis_terminate 1;
  195. fi
  196. - if ! $make2; then
  197. echo -e '\052\052 FAILED -- MAKE';
  198. travis_terminate 1;
  199. fi;
  200. - if test -n "$CHECKDOCS" && ! $make cmd-nits; then
  201. echo -e '\052\052 FAILED -- MAKE CMD-NITS';
  202. travis_terminate 1;
  203. fi
  204. - if [ -z "$BUILDONLY" ]; then
  205. if [ -n "$CROSS_COMPILE" ]; then
  206. sudo dpkg --add-architecture i386;
  207. sudo apt-get update;
  208. sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
  209. export EXE_SHELL="wine" WINEPREFIX=`pwd`;
  210. fi;
  211. if [ -e krb5/src ]; then
  212. sudo apt-get -yq install bison dejagnu gettext keyutils ldap-utils libldap2-dev libkeyutils-dev python-cjson python-paste python-pyrad slapd tcl-dev tcsh;
  213. fi;
  214. if ! HARNESS_VERBOSE_FAILURE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner travis_wait 60 make _tests; then
  215. echo -e '\052\052 FAILED -- MAKE TEST';
  216. travis_terminate 1;
  217. fi;
  218. else
  219. if ! $make build_tests >~/build.log 2>&1; then
  220. echo -e '\052\052 FAILED -- MAKE BUILD_TESTS';
  221. cat ~/build.log
  222. travis_terminate 1;
  223. fi;
  224. fi
  225. - if [ -n "$DESTDIR" ]; then
  226. mkdir "$top/$DESTDIR";
  227. if ! $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then
  228. echo -e '\052\052 FAILED -- MAKE INSTALL';
  229. cat ~/install.log;
  230. travis_terminate 1;
  231. fi;
  232. fi
  233. - cd $top
  234. - echo -e '\052\052 DONE'
  235. after_success:
  236. - if [ -n "$COVERALLS" ]; then
  237. coveralls -b . --gcov gcov --gcov-options '\-lpbc';
  238. fi;
  239. notifications:
  240. email:
  241. secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="