2019-03-06 00:44:53 +08:00
dist : xenial
2017-03-14 23:40:34 +08:00
sudo : required
2018-04-23 03:14:15 +08:00
osx_image : xcode9.3
2015-08-20 06:12:29 +08:00
language : c
2016-03-07 07:33:35 +08:00
cache : ccache
2017-03-13 19:13:07 +08:00
git :
submodules : false
2018-08-15 05:37:33 +08:00
quiet : true
2015-08-20 06:12:29 +08:00
2016-08-03 21:29:21 +08:00
before_install :
2016-10-10 18:22:10 +08:00
- if [ -n "$COVERALLS" ]; then
pip install --user cpp-coveralls;
fi;
2017-03-13 19:13:07 +08:00
- if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
git submodule update --init --recursive;
fi;
2019-11-15 15:47:22 +08:00
- eval "${MATRIX_EVAL}"
arch :
- amd64
- arm64
2016-08-03 21:29:21 +08:00
2015-08-20 06:12:29 +08:00
os :
2015-09-22 07:54:36 +08:00
- linux
2018-02-09 16:12:47 +08:00
- osx
2015-08-20 06:12:29 +08:00
compiler :
2015-09-22 07:54:36 +08:00
- clang
- gcc
2015-08-20 06:12:29 +08:00
env :
2018-03-28 16:38:56 +08:00
- CONFIG_OPTS="" DESTDIR="_install"
2019-12-19 15:50:50 +08:00
# 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.
2019-07-02 22:23:27 +08:00
- CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1"
2019-02-28 20:35:32 +08:00
- CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi"
2015-09-22 07:54:36 +08:00
matrix :
2015-10-13 04:15:43 +08:00
include :
2019-09-29 13:58:19 +08:00
- os : linux
arch : arm64
2019-11-15 15:47:22 +08:00
dist : bionic
compiler : clang
env : CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
- os : linux
arch : arm64
compiler : clang
addons :
apt :
packages :
- clang-6.0
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"
- os : linux
arch : arm64
compiler : clang
addons :
apt :
packages :
- clang-6.0
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"
2019-11-14 17:34:02 +08:00
- os : linux
arch : s390x
compiler : gcc
env : CONFIG_OPTS="--strict-warnings"
2018-08-29 04:06:26 +08:00
- os : linux-ppc64le
sudo : false
compiler : clang
env : CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES"
2017-02-06 18:14:05 +08:00
- os : linux
2019-03-06 00:44:53 +08:00
compiler : gcc
2018-03-28 16:38:56 +08:00
env : CONFIG_OPTS="--strict-warnings" COMMENT="Move to the BORINGTEST build when interoperable"
2016-11-03 23:46:14 +08:00
- os : linux
2019-03-06 00:44:53 +08:00
dist : trusty
2018-05-07 00:30:59 +08:00
compiler : clang
2019-10-21 19:53:51 +08:00
env : CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated"
2019-07-24 15:22:25 +08:00
- os : linux
dist : bionic
compiler : clang
env : CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
2017-02-06 18:14:05 +08:00
- os : linux
addons :
apt :
packages :
- binutils-mingw-w64
- gcc-mingw-w64
compiler : i686-w64-mingw32-gcc
env : CONFIG_OPTS="no-stdio" BUILDONLY="yes"
2018-05-08 03:56:04 +08:00
# Uncomment if there is reason to believe that PPC-specific problem
# can be diagnosed with this possibly >30 mins sanitizer build...
#- os: linux-ppc64le
# sudo: false
# compiler: gcc
# env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-ubsan no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES"
2016-08-03 21:29:21 +08:00
- os : linux
2017-01-26 08:02:43 +08:00
addons :
apt :
packages :
2019-03-06 00:44:53 +08:00
- golang-1.10
compiler : gcc
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++"
2017-03-21 22:57:03 +08:00
- os : linux
addons :
apt :
packages :
2019-03-06 00:44:53 +08:00
- golang-1.10
compiler : gcc
2019-12-23 22:52:03 +08:00
# External test pyca-cryptography temporarily disabled due to long term travis failures
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"
2016-07-29 02:24:28 +08:00
- os : linux
2018-05-07 00:30:59 +08:00
compiler : clang
2019-03-06 00:44:53 +08:00
env : EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -D__NO_STRING_INLINES -Wno-unused-command-line-argument"
2015-10-07 02:27:50 +08:00
- os : linux
2018-05-07 00:30:59 +08:00
compiler : clang
2019-03-06 00:44:53 +08:00
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++"
2019-12-24 01:14:58 +08:00
#Temporarily removed because memleak test fails for unknown reasons in this build. Other builds with memleak testing ("-fsanitize=address") are passing.
# - os: linux
# compiler: clang
# 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"
2018-05-26 23:08:03 +08:00
- os : linux
2019-03-06 00:44:53 +08:00
compiler : gcc
env : EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 enable-buildtest-c++ -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
2016-08-05 06:48:44 +08:00
- os : linux
2017-01-26 08:02:43 +08:00
addons :
apt :
packages :
- binutils-mingw-w64
- gcc-mingw-w64
2016-08-05 06:48:44 +08:00
compiler : i686-w64-mingw32-gcc
2018-03-28 16:38:56 +08:00
env : EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
2016-03-07 19:59:40 +08:00
- os : linux
2017-01-26 08:02:43 +08:00
addons :
apt :
packages :
- binutils-mingw-w64
- gcc-mingw-w64
2016-08-05 06:48:44 +08:00
compiler : x86_64-w64-mingw32-gcc
2018-03-28 16:38:56 +08:00
env : EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
2018-10-16 13:18:00 +08:00
- os : linux
language : python
python : 3.7
install : pip install flake8
before_script :
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script : true
2015-09-22 07:54:36 +08:00
exclude :
2016-03-07 22:15:20 +08:00
- os : linux
compiler : clang
2016-02-12 18:45:44 +08:00
- os : osx
compiler : gcc
2019-11-15 15:47:22 +08:00
- arch : arm64
os : osx
2019-12-19 15:50:50 +08:00
# arm64 times out when using -fsanitize=address
# The amd64 build should be sufficient to test this.
# Note: the env line must exactly match the env line from the build
# matrix above which contains the `-fsanitize=address` option.
# TODO: come up with a better way of doing this that is less error prone.
- arch : arm64
env : CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1"
2015-09-22 07:54:36 +08:00
before_script :
2017-02-06 18:14:05 +08:00
- env
2017-04-13 00:57:02 +08:00
- if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
2019-12-02 10:44:21 +08:00
(git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || travis_terminate 0;
2017-02-06 18:14:05 +08:00
fi
2016-08-04 17:50:39 +08:00
- if [ -n "$DESTDIR" ]; then
sh .travis-create-release.sh $TRAVIS_OS_NAME;
2018-03-07 03:18:43 +08:00
tar -xzf _srcdist.tar.gz;
2016-08-04 17:50:39 +08:00
mkdir _build;
cd _build;
srcdir=../_srcdist;
top=..;
else
srcdir=.;
top=.;
fi
2018-03-07 03:18:43 +08:00
- if [ "$CC" = i686-w64-mingw32-gcc ]; then
2015-09-22 07:54:36 +08:00
export CROSS_COMPILE=${CC%%gcc}; unset CC;
2016-08-04 17:50:39 +08:00
$srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
2018-03-07 03:18:43 +08:00
elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then
2015-09-22 07:54:36 +08:00
export CROSS_COMPILE=${CC%%gcc}; unset CC;
2016-08-04 17:50:39 +08:00
$srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
2015-09-22 07:54:36 +08:00
else
2019-03-06 00:44:53 +08:00
if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then
2016-03-10 09:14:55 +08:00
CC="ccache $CC";
2016-03-10 15:36:57 +08:00
fi;
2016-08-16 00:46:39 +08:00
$srcdir/config -v $CONFIG_OPTS;
2015-09-22 07:54:36 +08:00
fi
2018-01-30 01:22:33 +08:00
- ./configdata.pm --dump
2016-08-04 17:50:39 +08:00
- cd $top
2015-08-20 06:12:29 +08:00
script :
2016-08-16 00:45:22 +08:00
- if [ -z "$BUILDONLY" ]; then
make="make -s";
else
make="make";
fi
2018-04-11 21:49:19 +08:00
- if [ -n "$GENERATE" ]; then
make2="$make PERL=no-perl";
else
make2="$make";
fi
2016-11-10 00:25:35 +08:00
- top=${PWD}
2016-08-04 17:50:39 +08:00
- if [ -n "$DESTDIR" ]; then
cd _build;
fi
2019-08-18 21:04:17 +08:00
- if ! $make update; then
echo -e '\052\052 FAILED -- MAKE UPDATE';
2019-08-18 00:49:50 +08:00
travis_terminate 1;
2018-06-12 14:57:43 +08:00
fi
2019-08-18 21:04:17 +08:00
- if ! git diff --exit-code; then
2019-12-01 07:18:47 +08:00
echo -e '\052\052 FAILED -- UPDATED FILES NOT COMMITTED';
2019-08-18 21:04:17 +08:00
travis_terminate 1;
2017-01-10 11:41:26 +08:00
fi
2019-08-18 21:04:17 +08:00
- if test -n "$GENERATE" && ! $make build_all_generated; then
echo -e '\052\052 FAILED -- MAKE BUILD_ALL_GENERATED';
travis_terminate 1;
fi
2019-10-13 05:45:56 +08:00
- if test -n "$CHECKDOCS" && ! $make doc-nits; then
echo -e '\052\052 FAILED -- MAKE DOC-NITS';
travis_terminate 1;
fi
2019-08-18 21:04:17 +08:00
- if ! $make2; then
echo -e '\052\052 FAILED -- MAKE';
2019-08-18 00:49:50 +08:00
travis_terminate 1;
2017-07-04 01:33:58 +08:00
fi;
2016-03-07 05:31:18 +08:00
- if [ -z "$BUILDONLY" ]; then
2016-03-07 19:59:40 +08:00
if [ -n "$CROSS_COMPILE" ]; then
2017-03-14 23:40:34 +08:00
sudo dpkg --add-architecture i386;
sudo apt-get update;
2017-02-06 18:14:05 +08:00
sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
2016-03-07 19:59:40 +08:00
export EXE_SHELL="wine" WINEPREFIX=`pwd`;
fi;
2017-04-06 00:54:41 +08:00
if [ -e krb5/src ]; then
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;
fi;
2019-09-11 17:16:53 +08:00
if ! HARNESS_VERBOSE_FAILURE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test; then
2019-08-18 21:04:17 +08:00
echo -e '\052\052 FAILED -- MAKE TEST';
2019-08-18 00:49:50 +08:00
travis_terminate 1;
2017-07-04 01:33:58 +08:00
fi;
2016-03-14 19:47:47 +08:00
else
2019-08-18 21:04:17 +08:00
if ! $make build_tests >~/build.log 2>&1; then
echo -e '\052\052 FAILED -- MAKE BUILD_TESTS';
2018-03-07 03:18:43 +08:00
cat ~/build.log
2019-08-18 00:49:50 +08:00
travis_terminate 1;
2017-07-04 01:33:58 +08:00
fi;
2015-10-16 23:19:04 +08:00
fi
2016-03-29 23:50:53 +08:00
- if [ -n "$DESTDIR" ]; then
2016-11-10 00:25:35 +08:00
mkdir "$top/$DESTDIR";
2019-08-18 21:04:17 +08:00
if ! $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then
echo -e '\052\052 FAILED -- MAKE INSTALL';
2018-03-07 03:18:43 +08:00
cat ~/install.log;
2019-08-18 00:49:50 +08:00
travis_terminate 1;
2017-07-04 01:33:58 +08:00
fi;
2016-03-29 23:50:53 +08:00
fi
2016-08-04 17:50:39 +08:00
- cd $top
2019-08-18 21:04:17 +08:00
- echo -e '\052\052 DONE'
2015-08-20 06:12:29 +08:00
2016-08-03 21:29:21 +08:00
after_success :
- if [ -n "$COVERALLS" ]; then
2019-03-06 00:44:53 +08:00
coveralls -b . --gcov gcov --gcov-options '\-lpbc';
2016-08-03 21:29:21 +08:00
fi;
2015-08-20 06:12:29 +08:00
notifications :
2015-09-22 07:54:36 +08:00
email :
2016-11-02 07:09:03 +08:00
secure : "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="