Enable status_request test in test_sslmessages
[openssl.git] / .travis.yml
1 language: c
2 cache: ccache
3
4 before_install:
5     - if [ -n "$COVERALLS" ]; then
6           pip install --user cpp-coveralls;
7       fi;
8
9 addons:
10     apt:
11         packages:
12             - ccache
13             - clang-3.6
14             - gcc-5
15             - g++-5
16             - golang
17             - binutils-mingw-w64
18             - gcc-mingw-w64
19         sources:
20             - llvm-toolchain-precise-3.6
21             - ubuntu-toolchain-r-test
22
23 os:
24     - linux
25     - osx
26
27 compiler:
28     - clang
29     - gcc
30
31 env:
32     - CONFIG_OPTS="" DESTDIR="_install"
33     - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
34     - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes"
35     - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
36     - CONFIG_OPTS="no-stdio --strict-warnings" BUILDONLY="yes"
37
38 matrix:
39     include:
40         - os: linux
41           compiler: clang-3.6
42           env: CONFIG_OPTS="--strict-warnings no-deprecated" BUILDONLY="yes"
43         - os: linux
44           compiler: gcc-5
45           env: 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 enable-external-tests no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" COVERALLS="yes" BORINGSSL_TESTS="yes" CXX="g++-5"
46         - os: linux
47           compiler: clang-3.6
48           env: CONFIG_OPTS="enable-msan"
49         - os: linux
50           compiler: clang-3.6
51           env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg -fno-sanitize=alignment no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
52         - os: linux
53           compiler: clang-3.6
54           env: CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2 no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
55         - os: linux
56           compiler: gcc-5
57           env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
58         - os: linux
59           compiler: i686-w64-mingw32-gcc
60           env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
61         - os: linux
62           compiler: i686-w64-mingw32-gcc
63           env: CONFIG_OPTS="no-pic"
64         - os: linux
65           compiler: x86_64-w64-mingw32-gcc
66           env: CONFIG_OPTS="no-pic"
67     exclude:
68         - os: linux
69           compiler: clang
70         - os: osx
71           compiler: gcc
72
73 before_script:
74     - if [ -n "$DESTDIR" ]; then
75           sh .travis-create-release.sh $TRAVIS_OS_NAME;
76           tar -xvzf _srcdist.tar.gz;
77           mkdir _build;
78           cd _build;
79           srcdir=../_srcdist;
80           top=..;
81       else
82           srcdir=.;
83           top=.;
84       fi
85     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
86           export CROSS_COMPILE=${CC%%gcc}; unset CC;
87           $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
88       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
89           export CROSS_COMPILE=${CC%%gcc}; unset CC;
90           $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
91       else
92           if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
93               CC="ccache $CC";
94           fi;
95           $srcdir/config -v $CONFIG_OPTS;
96       fi
97     - cd $top
98
99 script:
100     - if [ -z "$BUILDONLY" ]; then
101           make="make -s";
102       else
103           make="make";
104       fi
105     - top=${PWD}
106     - if [ -n "$DESTDIR" ]; then
107           cd _build;
108       fi
109     - $make update
110     - $make
111     - if [ -z "$BUILDONLY" ]; then
112           if [ -n "$CROSS_COMPILE" ]; then
113               sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
114               export EXE_SHELL="wine" WINEPREFIX=`pwd`;
115           fi;
116           HARNESS_VERBOSE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test;
117       else
118           $make build_tests;
119       fi
120     - if [ -n "$DESTDIR" ]; then
121           mkdir "$top/$DESTDIR";
122           $make install install_docs DESTDIR="$top/$DESTDIR";
123       fi
124     - cd $top
125
126 after_success:
127     - if [ -n "$COVERALLS" ]; then
128           coveralls -b . --gcov gcov-5 --gcov-options '\-lp';
129       fi;
130
131 notifications:
132     email:
133         secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="