.travis.yml: remove osx from build matrix.
[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
26 compiler:
27     - clang
28     - gcc
29
30 env:
31     - CONFIG_OPTS="" DESTDIR="_install"
32     - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
33     - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes" CHECKDOCS="yes"
34     - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
35     - CONFIG_OPTS="no-stdio --strict-warnings" BUILDONLY="yes"
36     - CONFIG_OPTS="no-ec" 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 -DPEDANTIC -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: gcc-5
60           env: CONFIG_OPTS="--strict-warnings enable-tls1_3" COMMENT="Move to the BORINGTEST build when interoperable"
61         - os: linux
62           compiler: i686-w64-mingw32-gcc
63           env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
64         - os: linux
65           compiler: i686-w64-mingw32-gcc
66           env: CONFIG_OPTS="no-pic"
67         - os: linux
68           compiler: x86_64-w64-mingw32-gcc
69           env: CONFIG_OPTS="no-pic"
70     exclude:
71         - os: linux
72           compiler: clang
73         - os: osx
74           compiler: gcc
75
76 before_script:
77     - if [ -n "$DESTDIR" ]; then
78           sh .travis-create-release.sh $TRAVIS_OS_NAME;
79           tar -xvzf _srcdist.tar.gz;
80           mkdir _build;
81           cd _build;
82           srcdir=../_srcdist;
83           top=..;
84       else
85           srcdir=.;
86           top=.;
87       fi
88     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
89           export CROSS_COMPILE=${CC%%gcc}; unset CC;
90           $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
91       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
92           export CROSS_COMPILE=${CC%%gcc}; unset CC;
93           $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
94       else
95           if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
96               CC="ccache $CC";
97           fi;
98           $srcdir/config -v $CONFIG_OPTS;
99       fi
100     - cd $top
101
102 script:
103     - if [ -z "$BUILDONLY" ]; then
104           make="make -s";
105       else
106           make="make";
107       fi
108     - top=${PWD}
109     - if [ -n "$DESTDIR" ]; then
110           cd _build;
111       fi
112     - $make update
113     - if [ -n "$CHECKDOCS" ]; then
114           $make doc-nits;
115       fi
116     - $make
117     - if [ -z "$BUILDONLY" ]; then
118           if [ -n "$CROSS_COMPILE" ]; then
119               sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
120               export EXE_SHELL="wine" WINEPREFIX=`pwd`;
121           fi;
122           HARNESS_VERBOSE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test;
123       else
124           $make build_tests;
125       fi
126     - if [ -n "$DESTDIR" ]; then
127           mkdir "$top/$DESTDIR";
128           $make install install_docs DESTDIR="$top/$DESTDIR";
129       fi
130     - cd $top
131
132 after_success:
133     - if [ -n "$COVERALLS" ]; then
134           coveralls -b . --gcov gcov-5 --gcov-options '\-lp';
135       fi;
136
137 notifications:
138     email:
139         secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="