13 - if [ -n "$COVERALLS" ]; then
14 pip install --user cpp-coveralls;
16 - if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
17 git submodule update --init --recursive;
29 - CONFIG_OPTS="" DESTDIR="_install"
30 - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2"
31 - CONFIG_OPTS="no-asm no-makedepend --strict-warnings -std=c89 -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes"
38 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES"
46 - ubuntu-toolchain-r-test
48 env: CONFIG_OPTS="--strict-warnings" COMMENT="Move to the BORINGTEST build when interoperable"
51 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
58 compiler: i686-w64-mingw32-gcc
59 env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
60 # Uncomment if there is reason to believe that PPC-specific problem
61 # can be diagnosed with this possibly >30 mins sanitizer build...
65 # env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-ubsan no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES"
74 - ubuntu-toolchain-r-test
76 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 -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" COVERALLS="yes" BORINGSSL_TESTS="yes" CXX="g++-5"
85 - ubuntu-toolchain-r-test
87 env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-external-tests" BORINGSSL_TESTS="yes" CXX="g++-5" TESTS=95
90 env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan -D__NO_STRING_INLINES -Wno-unused-command-line-argument"
93 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg no-shared -fno-sanitize=alignment -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES -Wno-unused-command-line-argument"
96 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"
104 - ubuntu-toolchain-r-test
106 env: UBUNTU_GCC_HACK="yes" EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
113 compiler: i686-w64-mingw32-gcc
114 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
121 compiler: x86_64-w64-mingw32-gcc
122 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
131 - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
132 (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || exit 0;
134 - if [ -n "$DESTDIR" ]; then
135 sh .travis-create-release.sh $TRAVIS_OS_NAME;
136 tar -xzf _srcdist.tar.gz;
145 - if [ -n "$UBUNTU_GCC_HACK" ]; then
146 $CC -dumpspecs | sed "s/--push-state//g; s/--pop-state/--as-needed/g" > gcc-specs.txt;
147 CC="$CC -specs=gcc-specs.txt";
149 - if [ "$CC" = i686-w64-mingw32-gcc ]; then
150 export CROSS_COMPILE=${CC%%gcc}; unset CC;
151 $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
152 elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then
153 export CROSS_COMPILE=${CC%%gcc}; unset CC;
154 $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
156 if [ "$CC" = clang-3.9 ]; then
157 sudo cp .travis-apt-pin.preferences /etc/apt/preferences.d/no-ubuntu-clang;
158 curl -sSL "http://apt.llvm.org/llvm-snapshot.gpg.key" | sudo -E apt-key add -;
159 echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" | sudo tee -a /etc/apt/sources.list > /dev/null;
160 sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test";
161 sudo -E apt-get -yq update;
162 sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install clang-3.9;
163 elif which ccache >/dev/null; then
166 $srcdir/config -v $CONFIG_OPTS;
168 - ./configdata.pm --dump
172 - if [ -z "$BUILDONLY" ]; then
177 - if [ -n "$GENERATE" ]; then
178 make2="$make PERL=no-perl";
183 - if [ -n "$DESTDIR" ]; then
186 - if $make update; then
187 echo -e '+\057 MAKE UPDATE OK';
189 echo -e '+\057 MAKE UPDATE FAILED'; false;
191 - git diff --exit-code
192 - if [ -n "$CHECKDOCS" ]; then
193 if $make doc-nits; then
194 echo -e '+\057\057 MAKE DOC-NITS OK';
196 echo -e '+\057\057 MAKE DOC-NITS FAILED'; false;
199 - if [ -n "$GENERATE" ]; then
200 if $make build_all_generated; then
201 echo -e '+\057\057\057 MAKE BUILD_ALL_GENERATED OK';
203 echo -e '+\057\057\057 MAKE BUILD_ALL_GENERATED FAILED'; false;
207 echo -e '+\057\057\057\057 MAKE OK';
209 echo -e '+\057\057\057\057 MAKE FAILED'; false;
211 - if [ -z "$BUILDONLY" ]; then
212 if [ -n "$CROSS_COMPILE" ]; then
213 sudo dpkg --add-architecture i386;
215 sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
216 export EXE_SHELL="wine" WINEPREFIX=`pwd`;
218 if [ -e krb5/src ]; then
219 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;
221 if HARNESS_VERBOSE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test; then
222 echo -e '+\057\057\057\057\057 MAKE TEST OK';
224 echo -e '+\057\057\057\057\057 MAKE TEST FAILED'; false;
227 if $make build_tests >~/build.log 2>&1; then
228 echo -e '+\057\057\057\057\057\057 MAKE BUILD_TESTS OK';
230 echo -e '+\057\057\057\057\057\057 MAKE BUILD_TESTS FAILED';
235 - if [ -n "$DESTDIR" ]; then
236 mkdir "$top/$DESTDIR";
237 if $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then
238 echo -e '+\057\057\057\057\057\057\057 MAKE INSTALL OK';
240 echo -e '+\057\057\057\057\057\057\057 MAKE INSTALL FAILED';
248 - if [ -n "$COVERALLS" ]; then
249 coveralls -b . --gcov gcov-5 --gcov-options '\-lpbc';
254 secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="