13 - if [ -n "$COVERALLS" ]; then
14 travis_retry pip install --user cpp-coveralls;
16 - if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
17 travis_retry git submodule update --init --recursive;
19 - eval "${MATRIX_EVAL}"
33 - CONFIG_OPTS="" DESTDIR="_install"
34 # Note: This CONFIG_OPTS entry must match the value in the exclude: table below that contains env: CONFIG_OPTS , otherwise it will not find a match.
35 - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1"
36 - CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi"
44 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
52 env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -D__NO_STRING_INLINES -Wno-unused-command-line-argument" MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
60 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 -D__NO_STRING_INLINES -Wno-unused-command-line-argument" MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
64 env: CONFIG_OPTS="" MAKEVERBOSE="yes"
68 env: CONFIG_OPTS="no-asm no-deprecated enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" CPPFLAGS="-ansi"
72 env: CONFIG_OPTS="--strict-warnings"
75 env: CONFIG_OPTS="--strict-warnings"
78 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"
82 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated"
86 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
93 compiler: i686-w64-mingw32-gcc
94 env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
95 # Uncomment if there is reason to believe that PPC-specific problem
96 # can be diagnosed with this possibly >30 mins sanitizer build...
100 # env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-ubsan no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES"
107 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++"
114 # External test pyca-cryptography temporarily disabled due to long term travis failures
115 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"
118 env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -D__NO_STRING_INLINES -Wno-unused-command-line-argument"
121 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 -D__NO_STRING_INLINES -Wno-unused-command-line-argument" CXX="clang++"
122 #Temporarily removed because memleak test fails for unknown reasons in this build. Other builds with memleak testing ("-fsanitize=address") are passing.
125 # env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2 no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES -Wno-unused-command-line-argument"
128 env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 enable-buildtest-c++ -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
135 compiler: i686-w64-mingw32-gcc
136 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
143 compiler: x86_64-w64-mingw32-gcc
144 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
148 install: pip install flake8
150 # stop the build if there are Python syntax errors or undefined names
151 - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
152 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
153 - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
157 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"
167 - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
168 (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || travis_terminate 0;
170 - if [ -n "$DESTDIR" ]; then
171 sh .travis-create-release.sh $TRAVIS_OS_NAME;
172 tar -xzf _srcdist.tar.gz;
173 mkdir -p _build/tree;
175 srcdir=../../_srcdist;
181 - if [ "$CC" = i686-w64-mingw32-gcc ]; then
182 export CROSS_COMPILE=${CC%%gcc}; unset CC;
183 $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
184 elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then
185 export CROSS_COMPILE=${CC%%gcc}; unset CC;
186 $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
188 if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then
191 if [ -n "$CONFIGURE_TARGET" ]; then
192 $srcdir/Configure $CONFIGURE_TARGET $CONFIG_OPTS;
194 $srcdir/config -v $CONFIG_OPTS;
197 - ./configdata.pm --dump
201 - if [ -z "$BUILDONLY" ] && [ -z "$MAKEVERBOSE" ] ; then
206 - if [ -n "$GENERATE" ]; then
207 make2="$make PERL=no-perl";
212 - if [ -n "$DESTDIR" ]; then
215 - if ! $make update; then
216 echo -e '\052\052 FAILED -- MAKE UPDATE';
219 - if ! git diff --exit-code; then
220 echo -e '\052\052 FAILED -- UPDATED FILES NOT COMMITTED';
223 - if test -n "$GENERATE" && ! $make build_all_generated; then
224 echo -e '\052\052 FAILED -- MAKE BUILD_ALL_GENERATED';
227 - if test -n "$CHECKDOCS" && ! $make doc-nits; then
228 echo -e '\052\052 FAILED -- MAKE DOC-NITS';
232 echo -e '\052\052 FAILED -- MAKE';
235 - if test -n "$CHECKDOCS" && ! $make cmd-nits; then
236 echo -e '\052\052 FAILED -- MAKE CMD-NITS';
239 - if [ -z "$BUILDONLY" ]; then
240 if [ -n "$CROSS_COMPILE" ]; then
241 sudo dpkg --add-architecture i386;
243 sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
244 export EXE_SHELL="wine" WINEPREFIX=`pwd`;
246 if [ -e krb5/src ]; then
247 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;
249 if ! HARNESS_VERBOSE_FAILURE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner travis_wait 60 make _tests; then
250 echo -e '\052\052 FAILED -- MAKE TEST';
254 if ! $make build_tests >~/build.log 2>&1; then
255 echo -e '\052\052 FAILED -- MAKE BUILD_TESTS';
260 - if [ -n "$DESTDIR" ]; then
261 mkdir "$top/$DESTDIR";
262 if ! $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then
263 echo -e '\052\052 FAILED -- MAKE INSTALL';
269 - echo -e '\052\052 DONE'
272 - if [ -n "$COVERALLS" ]; then
273 coveralls -b . --gcov gcov --gcov-options '\-lpbc';
278 secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="