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