]>
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" |
22c22369 | 34 | - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1" |
26a053d1 | 35 | - CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="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 |
fbc6efbb TM |
44 | env: CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi" |
45 | - os: osx | |
46 | compiler: gcc | |
47 | - os: osx | |
48 | env: CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1" | |
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 | |
97ace6c2 | 57 | env: CONFIG_OPTS="no-asm no-deprecated enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="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 BE |
95 | - golang-1.10 |
96 | compiler: gcc | |
20e6631c MC |
97 | # External test pyca-cryptography temporarily disabled due to long term travis failures |
98 | 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" | |
29df3061 | 99 | - os: linux |
9a96626e | 100 | compiler: clang |
fbc6efbb | 101 | env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -Wno-unused-command-line-argument" |
6220acf8 | 102 | - os: linux |
9a96626e | 103 | compiler: clang |
fbc6efbb | 104 | 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++" |
4de3fe53 | 105 | - os: linux |
16161a30 BE |
106 | compiler: gcc |
107 | env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 enable-buildtest-c++ -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0 | |
b4aaf194 | 108 | - os: linux |
fbc6efbb | 109 | dist: xenial |
31c1db92 AP |
110 | addons: |
111 | apt: | |
112 | packages: | |
113 | - binutils-mingw-w64 | |
114 | - gcc-mingw-w64 | |
b4aaf194 | 115 | compiler: i686-w64-mingw32-gcc |
5d322036 | 116 | env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" |
56cd71b4 | 117 | - os: linux |
fbc6efbb | 118 | dist: xenial |
31c1db92 AP |
119 | addons: |
120 | apt: | |
121 | packages: | |
122 | - binutils-mingw-w64 | |
123 | - gcc-mingw-w64 | |
b4aaf194 | 124 | compiler: x86_64-w64-mingw32-gcc |
5d322036 | 125 | env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" |
2a6f57bc | 126 | - os: linux |
127 | language: python | |
128 | python: 3.7 | |
2a6f57bc | 129 | install: pip install flake8 |
130 | before_script: | |
131 | # stop the build if there are Python syntax errors or undefined names | |
132 | - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics | |
133 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
134 | - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
135 | script: true | |
d819760d BE |
136 | - os: linux |
137 | compiler: gcc | |
138 | 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" | |
3ce38663 | 139 | |
db9defdf RS |
140 | |
141 | before_script: | |
b169c0ec | 142 | - env |
2da3f968 | 143 | - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then |
6df44cf6 | 144 | (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || travis_terminate 0; |
b169c0ec | 145 | fi |
262ee9a2 RL |
146 | - if [ -n "$DESTDIR" ]; then |
147 | sh .travis-create-release.sh $TRAVIS_OS_NAME; | |
9967a9ed | 148 | tar -xzf _srcdist.tar.gz; |
6caf63ec RL |
149 | mkdir -p _build/tree; |
150 | cd _build/tree; | |
151 | srcdir=../../_srcdist; | |
152 | top=../..; | |
262ee9a2 RL |
153 | else |
154 | srcdir=.; | |
155 | top=.; | |
156 | fi | |
9967a9ed | 157 | - if [ "$CC" = i686-w64-mingw32-gcc ]; then |
db9defdf | 158 | export CROSS_COMPILE=${CC%%gcc}; unset CC; |
262ee9a2 | 159 | $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format; |
9967a9ed | 160 | elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then |
db9defdf | 161 | export CROSS_COMPILE=${CC%%gcc}; unset CC; |
262ee9a2 | 162 | $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf | 163 | else |
16161a30 | 164 | if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then |
a70ca740 | 165 | CC="ccache $CC"; |
8cffddc0 | 166 | fi; |
d819760d BE |
167 | if [ -n "$CONFIGURE_TARGET" ]; then |
168 | $srcdir/Configure $CONFIGURE_TARGET $CONFIG_OPTS; | |
169 | else | |
170 | $srcdir/config -v $CONFIG_OPTS; | |
171 | fi; | |
db9defdf | 172 | fi |
2da0130b | 173 | - ./configdata.pm --dump |
262ee9a2 | 174 | - cd $top |
66c103bd AG |
175 | |
176 | script: | |
7d726440 | 177 | - if [ -z "$BUILDONLY" ] && [ -z "$MAKEVERBOSE" ] ; then |
a4ffbbee RL |
178 | make="make -s"; |
179 | else | |
180 | make="make"; | |
181 | fi | |
6197bc7c RL |
182 | - if [ -n "$GENERATE" ]; then |
183 | make2="$make PERL=no-perl"; | |
184 | else | |
185 | make2="$make"; | |
186 | fi | |
ab29eca6 | 187 | - top=${PWD} |
262ee9a2 | 188 | - if [ -n "$DESTDIR" ]; then |
6caf63ec | 189 | cd _build/tree; |
262ee9a2 | 190 | fi |
97ace6c2 | 191 | - if ! $make update; then |
46c428d7 | 192 | echo -e '\052\052 FAILED -- MAKE UPDATE'; |
5be78a88 | 193 | travis_terminate 1; |
caf12bd6 | 194 | fi |
46c428d7 | 195 | - if ! git diff --exit-code; then |
79c44b4e | 196 | echo -e '\052\052 FAILED -- UPDATED FILES NOT COMMITTED'; |
46c428d7 | 197 | travis_terminate 1; |
29ee1be5 | 198 | fi |
46c428d7 RS |
199 | - if test -n "$GENERATE" && ! $make build_all_generated; then |
200 | echo -e '\052\052 FAILED -- MAKE BUILD_ALL_GENERATED'; | |
201 | travis_terminate 1; | |
202 | fi | |
9fcb9702 RS |
203 | - if test -n "$CHECKDOCS" && ! $make doc-nits; then |
204 | echo -e '\052\052 FAILED -- MAKE DOC-NITS'; | |
205 | travis_terminate 1; | |
206 | fi | |
46c428d7 RS |
207 | - if ! $make2; then |
208 | echo -e '\052\052 FAILED -- MAKE'; | |
5be78a88 | 209 | travis_terminate 1; |
d8ebcf5c | 210 | fi; |
912f8a98 RS |
211 | - if test -n "$CHECKDOCS" && ! $make cmd-nits; then |
212 | echo -e '\052\052 FAILED -- MAKE CMD-NITS'; | |
213 | travis_terminate 1; | |
214 | fi | |
b63447c1 | 215 | - if [ -z "$BUILDONLY" ]; then |
56cd71b4 | 216 | if [ -n "$CROSS_COMPILE" ]; then |
703324a7 EK |
217 | sudo dpkg --add-architecture i386; |
218 | sudo apt-get update; | |
b169c0ec | 219 | sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine; |
56cd71b4 EK |
220 | export EXE_SHELL="wine" WINEPREFIX=`pwd`; |
221 | fi; | |
0fef7448 RH |
222 | if [ -e krb5/src ]; then |
223 | 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; | |
224 | fi; | |
cde63b73 | 225 | if ! HARNESS_VERBOSE_FAILURE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner travis_wait 60 make _tests; then |
46c428d7 | 226 | echo -e '\052\052 FAILED -- MAKE TEST'; |
5be78a88 | 227 | travis_terminate 1; |
d8ebcf5c | 228 | fi; |
d7a275ee | 229 | else |
46c428d7 RS |
230 | if ! $make build_tests >~/build.log 2>&1; then |
231 | echo -e '\052\052 FAILED -- MAKE BUILD_TESTS'; | |
9967a9ed | 232 | cat ~/build.log |
5be78a88 | 233 | travis_terminate 1; |
d8ebcf5c | 234 | fi; |
1a3ae788 | 235 | fi |
d227a302 | 236 | - if [ -n "$DESTDIR" ]; then |
ab29eca6 | 237 | mkdir "$top/$DESTDIR"; |
46c428d7 RS |
238 | if ! $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then |
239 | echo -e '\052\052 FAILED -- MAKE INSTALL'; | |
9967a9ed | 240 | cat ~/install.log; |
5be78a88 | 241 | travis_terminate 1; |
d8ebcf5c | 242 | fi; |
d227a302 | 243 | fi |
262ee9a2 | 244 | - cd $top |
46c428d7 | 245 | - echo -e '\052\052 DONE' |
66c103bd | 246 | |
ad0a0a3a EK |
247 | after_success: |
248 | - if [ -n "$COVERALLS" ]; then | |
16161a30 | 249 | coveralls -b . --gcov gcov --gcov-options '\-lpbc'; |
ad0a0a3a EK |
250 | fi; |
251 | ||
66c103bd | 252 | notifications: |
db9defdf | 253 | email: |
5e28b1c1 | 254 | secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4=" |