]>
Commit | Line | Data |
---|---|---|
fbc6efbb | 1 | dist: bionic |
703324a7 | 2 | |
46cc9f35 AP |
3 | osx_image: xcode9.3 |
4 | ||
66c103bd | 5 | language: c |
bd5fbfe2 | 6 | cache: ccache |
22df22e7 AP |
7 | git: |
8 | submodules: false | |
b1bebbcb | 9 | quiet: true |
66c103bd | 10 | |
ad0a0a3a | 11 | before_install: |
b3943604 | 12 | - if [ -n "$COVERALLS" ]; then |
cde63b73 | 13 | travis_retry pip install --user cpp-coveralls; |
b3943604 | 14 | fi; |
22df22e7 | 15 | - if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then |
cde63b73 | 16 | travis_retry git submodule update --init --recursive; |
22df22e7 | 17 | fi; |
77fedcdc FF |
18 | - eval "${MATRIX_EVAL}" |
19 | ||
20 | arch: | |
21 | - amd64 | |
ad0a0a3a | 22 | |
66c103bd | 23 | os: |
db9defdf | 24 | - linux |
a6da6b73 | 25 | - osx |
66c103bd AG |
26 | |
27 | compiler: | |
db9defdf RS |
28 | - clang |
29 | - gcc | |
66c103bd AG |
30 | |
31 | env: | |
fbc6efbb | 32 | # Note: env entry here must exactly match the value in the exclude: table below that contains env:, otherwise it will not find a match. |
5d322036 | 33 | - CONFIG_OPTS="" DESTDIR="_install" |
16e3588d | 34 | - CONFIG_OPTS="no-asm --debug --strict-warnings no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1" |
a3ab4d63 | 35 | - CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" CPPFLAGS="-ansi" |
db9defdf | 36 | |
fbc6efbb TM |
37 | jobs: |
38 | exclude: | |
77fedcdc | 39 | - os: linux |
77fedcdc | 40 | compiler: clang |
fbc6efbb | 41 | env: CONFIG_OPTS="" DESTDIR="_install" |
77fedcdc | 42 | - os: linux |
77fedcdc | 43 | compiler: clang |
a3ab4d63 | 44 | env: CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" CPPFLAGS="-ansi" |
fbc6efbb TM |
45 | - os: osx |
46 | compiler: gcc | |
47 | - os: osx | |
16e3588d | 48 | env: CONFIG_OPTS="no-asm --debug --strict-warnings no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1" |
fbc6efbb | 49 | include: |
7d726440 TM |
50 | - os: linux |
51 | arch: arm64 | |
52 | compiler: gcc | |
fbc6efbb | 53 | env: CONFIG_OPTS="--strict-warnings" MAKEVERBOSE="yes" |
7d726440 TM |
54 | - os: linux |
55 | arch: arm64 | |
56 | compiler: gcc | |
52698fbf | 57 | env: CONFIG_OPTS="no-asm no-makedepend no-deprecated enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi" |
985412f8 PS |
58 | - os: linux |
59 | arch: s390x | |
60 | compiler: gcc | |
61 | env: CONFIG_OPTS="--strict-warnings" | |
13da3ad0 | 62 | - os: linux-ppc64le |
7d726440 TM |
63 | compiler: gcc |
64 | env: CONFIG_OPTS="--strict-warnings" | |
b169c0ec | 65 | - os: linux |
16161a30 | 66 | compiler: gcc |
d819760d | 67 | 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" |
7b195438 | 68 | - os: linux |
16161a30 | 69 | dist: trusty |
9a96626e | 70 | compiler: clang |
fbc6efbb | 71 | env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES" |
3119c849 | 72 | - os: linux |
fbc6efbb TM |
73 | dist: xenial |
74 | compiler: gcc | |
75 | env: CONFIG_OPTS="--strict-warnings no-deprecated enable-rc5 enable-md2" | |
b169c0ec AP |
76 | - os: linux |
77 | addons: | |
78 | apt: | |
79 | packages: | |
80 | - binutils-mingw-w64 | |
81 | - gcc-mingw-w64 | |
82 | compiler: i686-w64-mingw32-gcc | |
83 | env: CONFIG_OPTS="no-stdio" BUILDONLY="yes" | |
ad0a0a3a | 84 | - os: linux |
31c1db92 AP |
85 | addons: |
86 | apt: | |
87 | packages: | |
16161a30 BE |
88 | - golang-1.10 |
89 | compiler: gcc | |
90 | 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++" | |
cd838c65 RL |
91 | - os: linux |
92 | addons: | |
93 | apt: | |
94 | packages: | |
16161a30 | 95 | - golang-1.10 |
aa2cb51d DB |
96 | - cmake |
97 | - libtest2-suite-perl | |
16161a30 | 98 | compiler: gcc |
20e6631c | 99 | # External test pyca-cryptography temporarily disabled due to long term travis failures |
aa2cb51d | 100 | 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 test_external_gost_engine" |
29df3061 | 101 | - os: linux |
9a96626e | 102 | compiler: clang |
fbc6efbb | 103 | env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -Wno-unused-command-line-argument" |
6220acf8 | 104 | - os: linux |
9a96626e | 105 | compiler: clang |
77286fe3 | 106 | 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++ -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -Wno-unused-command-line-argument" CXX="clang++" |
4de3fe53 | 107 | - os: linux |
16161a30 | 108 | compiler: gcc |
77286fe3 | 109 | env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-asan enable-ubsan enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-buildtest-c++" OPENSSL_TEST_RAND_ORDER=0 |
b4aaf194 | 110 | - os: linux |
fbc6efbb | 111 | dist: xenial |
31c1db92 AP |
112 | addons: |
113 | apt: | |
114 | packages: | |
115 | - binutils-mingw-w64 | |
116 | - gcc-mingw-w64 | |
b4aaf194 | 117 | compiler: i686-w64-mingw32-gcc |
5d322036 | 118 | env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" |
56cd71b4 | 119 | - os: linux |
fbc6efbb | 120 | dist: xenial |
31c1db92 AP |
121 | addons: |
122 | apt: | |
123 | packages: | |
124 | - binutils-mingw-w64 | |
125 | - gcc-mingw-w64 | |
b4aaf194 | 126 | compiler: x86_64-w64-mingw32-gcc |
5d322036 | 127 | env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" |
2a6f57bc | 128 | - os: linux |
129 | language: python | |
130 | python: 3.7 | |
2a6f57bc | 131 | install: pip install flake8 |
132 | before_script: | |
133 | # stop the build if there are Python syntax errors or undefined names | |
134 | - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics | |
135 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
136 | - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
137 | script: true | |
d819760d BE |
138 | - os: linux |
139 | compiler: gcc | |
4ef0ddc9 | 140 | env: CONFIGURE_TARGET="linux-generic32" MARKDOWNLINT="yes" 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" |
3ce38663 | 141 | |
db9defdf RS |
142 | |
143 | before_script: | |
b169c0ec | 144 | - env |
2da3f968 | 145 | - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then |
6df44cf6 | 146 | (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || travis_terminate 0; |
b169c0ec | 147 | fi |
262ee9a2 RL |
148 | - if [ -n "$DESTDIR" ]; then |
149 | sh .travis-create-release.sh $TRAVIS_OS_NAME; | |
9967a9ed | 150 | tar -xzf _srcdist.tar.gz; |
6caf63ec RL |
151 | mkdir -p _build/tree; |
152 | cd _build/tree; | |
153 | srcdir=../../_srcdist; | |
154 | top=../..; | |
262ee9a2 RL |
155 | else |
156 | srcdir=.; | |
157 | top=.; | |
158 | fi | |
9967a9ed | 159 | - if [ "$CC" = i686-w64-mingw32-gcc ]; then |
db9defdf | 160 | export CROSS_COMPILE=${CC%%gcc}; unset CC; |
262ee9a2 | 161 | $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format; |
9967a9ed | 162 | elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then |
db9defdf | 163 | export CROSS_COMPILE=${CC%%gcc}; unset CC; |
262ee9a2 | 164 | $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf | 165 | else |
16161a30 | 166 | if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then |
a70ca740 | 167 | CC="ccache $CC"; |
8cffddc0 | 168 | fi; |
d819760d BE |
169 | if [ -n "$CONFIGURE_TARGET" ]; then |
170 | $srcdir/Configure $CONFIGURE_TARGET $CONFIG_OPTS; | |
171 | else | |
172 | $srcdir/config -v $CONFIG_OPTS; | |
173 | fi; | |
db9defdf | 174 | fi |
2da0130b | 175 | - ./configdata.pm --dump |
262ee9a2 | 176 | - cd $top |
66c103bd AG |
177 | |
178 | script: | |
7d726440 | 179 | - if [ -z "$BUILDONLY" ] && [ -z "$MAKEVERBOSE" ] ; then |
a4ffbbee RL |
180 | make="make -s"; |
181 | else | |
182 | make="make"; | |
183 | fi | |
6197bc7c RL |
184 | - if [ -n "$GENERATE" ]; then |
185 | make2="$make PERL=no-perl"; | |
186 | else | |
187 | make2="$make"; | |
188 | fi | |
ab29eca6 | 189 | - top=${PWD} |
262ee9a2 | 190 | - if [ -n "$DESTDIR" ]; then |
6caf63ec | 191 | cd _build/tree; |
262ee9a2 | 192 | fi |
97ace6c2 | 193 | - if ! $make update; then |
46c428d7 | 194 | echo -e '\052\052 FAILED -- MAKE UPDATE'; |
5be78a88 | 195 | travis_terminate 1; |
caf12bd6 | 196 | fi |
46c428d7 | 197 | - if ! git diff --exit-code; then |
79c44b4e | 198 | echo -e '\052\052 FAILED -- UPDATED FILES NOT COMMITTED'; |
46c428d7 | 199 | travis_terminate 1; |
29ee1be5 | 200 | fi |
46c428d7 RS |
201 | - if test -n "$GENERATE" && ! $make build_all_generated; then |
202 | echo -e '\052\052 FAILED -- MAKE BUILD_ALL_GENERATED'; | |
203 | travis_terminate 1; | |
204 | fi | |
9fcb9702 RS |
205 | - if test -n "$CHECKDOCS" && ! $make doc-nits; then |
206 | echo -e '\052\052 FAILED -- MAKE DOC-NITS'; | |
207 | travis_terminate 1; | |
208 | fi | |
4ef0ddc9 | 209 | - if test -n "$MARKDOWNLINT" ; then |
a51f225d RS |
210 | if ! gem install mdl ; then |
211 | echo -e '\052\052 FAILED -- GEM INSTALL MDL'; | |
212 | travis_terminate 1; | |
213 | fi; | |
214 | if ! $make md-nits ; then | |
215 | echo -e '\052\052 FAILED -- MAKE MD-NITS'; | |
216 | travis_terminate 1; | |
217 | fi; | |
4ef0ddc9 | 218 | fi |
46c428d7 RS |
219 | - if ! $make2; then |
220 | echo -e '\052\052 FAILED -- MAKE'; | |
5be78a88 | 221 | travis_terminate 1; |
d8ebcf5c | 222 | fi; |
912f8a98 RS |
223 | - if test -n "$CHECKDOCS" && ! $make cmd-nits; then |
224 | echo -e '\052\052 FAILED -- MAKE CMD-NITS'; | |
225 | travis_terminate 1; | |
226 | fi | |
b63447c1 | 227 | - if [ -z "$BUILDONLY" ]; then |
56cd71b4 | 228 | if [ -n "$CROSS_COMPILE" ]; then |
703324a7 EK |
229 | sudo dpkg --add-architecture i386; |
230 | sudo apt-get update; | |
b169c0ec | 231 | sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine; |
56cd71b4 EK |
232 | export EXE_SHELL="wine" WINEPREFIX=`pwd`; |
233 | fi; | |
0fef7448 RH |
234 | if [ -e krb5/src ]; then |
235 | 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; | |
236 | fi; | |
cde63b73 | 237 | if ! HARNESS_VERBOSE_FAILURE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner travis_wait 60 make _tests; then |
46c428d7 | 238 | echo -e '\052\052 FAILED -- MAKE TEST'; |
5be78a88 | 239 | travis_terminate 1; |
d8ebcf5c | 240 | fi; |
d7a275ee | 241 | else |
46c428d7 RS |
242 | if ! $make build_tests >~/build.log 2>&1; then |
243 | echo -e '\052\052 FAILED -- MAKE BUILD_TESTS'; | |
9967a9ed | 244 | cat ~/build.log |
5be78a88 | 245 | travis_terminate 1; |
d8ebcf5c | 246 | fi; |
1a3ae788 | 247 | fi |
d227a302 | 248 | - if [ -n "$DESTDIR" ]; then |
ab29eca6 | 249 | mkdir "$top/$DESTDIR"; |
46c428d7 RS |
250 | if ! $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then |
251 | echo -e '\052\052 FAILED -- MAKE INSTALL'; | |
9967a9ed | 252 | cat ~/install.log; |
5be78a88 | 253 | travis_terminate 1; |
d8ebcf5c | 254 | fi; |
d227a302 | 255 | fi |
262ee9a2 | 256 | - cd $top |
46c428d7 | 257 | - echo -e '\052\052 DONE' |
66c103bd | 258 | |
ad0a0a3a EK |
259 | after_success: |
260 | - if [ -n "$COVERALLS" ]; then | |
16161a30 | 261 | coveralls -b . --gcov gcov --gcov-options '\-lpbc'; |
ad0a0a3a EK |
262 | fi; |
263 | ||
66c103bd | 264 | notifications: |
db9defdf | 265 | email: |
5e28b1c1 | 266 | secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4=" |