Remove heartbeat support
[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             - binutils-mingw-w64
16             - gcc-mingw-w64
17         sources:
18             - llvm-toolchain-precise-3.6
19             - ubuntu-toolchain-r-test
20
21 os:
22     - linux
23     - osx
24
25 compiler:
26     - clang
27     - gcc
28
29 env:
30     - CONFIG_OPTS="" DESTDIR="_install"
31     - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
32     - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes"
33     - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
34     - CONFIG_OPTS="no-stdio --strict-warnings" BUILDONLY="yes"
35
36 matrix:
37     include:
38         - os: linux
39           compiler: clang-3.6
40           env: CONFIG_OPTS="--strict-warnings no-deprecated" BUILDONLY="yes"
41         - os: linux
42           compiler: gcc
43           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" COVERALLS="yes"
44         - os: linux
45           compiler: clang-3.6
46           env: CONFIG_OPTS="enable-msan"
47         - os: linux
48           compiler: clang-3.6
49           env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg -fno-sanitize=alignment"
50         - os: linux
51           compiler: clang-3.6
52           env: CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2"
53         - os: linux
54           compiler: gcc-5
55           env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
56         - os: linux
57           compiler: i686-w64-mingw32-gcc
58           env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
59         - os: linux
60           compiler: i686-w64-mingw32-gcc
61           env: CONFIG_OPTS="no-pic"
62         - os: linux
63           compiler: x86_64-w64-mingw32-gcc
64           env: CONFIG_OPTS="no-pic"
65     exclude:
66         - os: linux
67           compiler: clang
68         - os: osx
69           compiler: gcc
70
71 before_script:
72     - if [ -n "$DESTDIR" ]; then
73           sh .travis-create-release.sh $TRAVIS_OS_NAME;
74           tar -xvzf _srcdist.tar.gz;
75           mkdir _build;
76           cd _build;
77           srcdir=../_srcdist;
78           top=..;
79       else
80           srcdir=.;
81           top=.;
82       fi
83     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
84           export CROSS_COMPILE=${CC%%gcc}; unset CC;
85           $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
86       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
87           export CROSS_COMPILE=${CC%%gcc}; unset CC;
88           $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
89       else
90           if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
91               CC="ccache $CC";
92           fi;
93           $srcdir/config -v $CONFIG_OPTS;
94       fi
95     - cd $top
96
97 script:
98     - if [ -z "$BUILDONLY" ]; then
99           make="make -s";
100       else
101           make="make";
102       fi
103     - if [ -n "$DESTDIR" ]; then
104           cd _build;
105           top=..;
106       else
107           top=.;
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 make test;
117       else
118           $make build_tests;
119       fi
120     - if [ -n "$DESTDIR" ]; then
121           mkdir "../$DESTDIR";
122           $make install install_docs DESTDIR="../$DESTDIR";
123       fi
124     - cd $top
125
126 after_success:
127     - if [ -n "$COVERALLS" ]; then
128           coveralls -b . --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="