Ensure Travis tests SSLv3
[openssl.git] / .travis.yml
1 language: c
2 cache: ccache
3
4 addons:
5     apt:
6         packages:
7             - ccache
8             - clang-3.6
9             - gcc-5
10             - binutils-mingw-w64
11             - gcc-mingw-w64
12             - wine
13         sources:
14             - llvm-toolchain-precise-3.6
15             - ubuntu-toolchain-r-test
16
17 os:
18     - linux
19     - osx
20
21 compiler:
22     - clang
23     - gcc
24
25 env:
26     - CONFIG_OPTS="" DESTDIR="_install"
27     - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
28     - CONFIG_OPTS="--strict-warnings no-shared" BUILDONLY="yes"
29     - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes"
30     - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
31
32 matrix:
33     include:
34         - os: linux
35           compiler: clang-3.6
36           env: CONFIG_OPTS="no-shared enable-asan"
37         - os: linux
38           compiler: clang-3.6
39           env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method -fno-sanitize=alignment"
40         - os: linux
41           compiler: clang-3.6
42           env: CONFIG_OPTS="no-shared no-asm enable-asan enable-rc5 enable-md2"
43         - os: linux
44           compiler: gcc-5
45           env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
46         - os: linux
47           compiler: i686-w64-mingw32-gcc
48           env: CONFIG_OPTS="no-pic"
49         - os: linux
50           compiler: x86_64-w64-mingw32-gcc
51           env: CONFIG_OPTS="no-pic"
52     exclude:
53         - os: linux
54           compiler: clang
55         - os: osx
56           compiler: gcc
57
58 before_script:
59     - sh .travis-create-release.sh $TRAVIS_OS_NAME
60     - tar -xvzf _srcdist.tar.gz
61     - mkdir _build;
62     - cd _build;
63     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
64           export CROSS_COMPILE=${CC%%gcc}; unset CC;
65           ../_srcdist/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
66       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
67           export CROSS_COMPILE=${CC%%gcc}; unset CC;
68           ../_srcdist/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
69       else
70           if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
71               CC="ccache $CC";
72           fi;
73           ../_srcdist/config $CONFIG_OPTS;
74       fi
75     - cd ..
76
77 script:
78     - cd _build;
79     - make
80     - if [ -z "$BUILDONLY" ]; then
81           if [ -n "$CROSS_COMPILE" ]; then
82               export EXE_SHELL="wine" WINEPREFIX=`pwd`;
83           fi;
84           HARNESS_VERBOSE=yes make test;
85       else
86           make build_tests;
87       fi
88     - if [ -n "$DESTDIR" ]; then
89           mkdir "../$DESTDIR";
90           make install install_docs DESTDIR="../$DESTDIR";
91       fi
92     - cd ..
93
94 notifications:
95     email:
96         - openssl-commits@openssl.org
97