Don't build sanitizer builds with --debug
[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     - i686-w64-mingw32-gcc
25     - x86_64-w64-mingw32-gcc
26
27 env:
28     - CONFIG_OPTS=""
29     - CONFIG_OPTS="shared"
30     - CONFIG_OPTS="no-pic"
31     - CONFIG_OPTS="no-asm"
32     - CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
33     - CONFIG_OPTS="--unified"
34     - CONFIG_OPTS="--unified shared"
35     - CONFIG_OPTS="--unified no-asm"
36     - CONFIG_OPTS="--unified --debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
37
38 matrix:
39     include:
40         - os: linux
41           compiler: clang-3.6
42           env: CONFIG_OPTS="-fsanitize=address"
43         - os: linux
44           compiler: clang-3.6
45           env: CONFIG_OPTS="no-asm --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-crypto-mdebug enable-rc5 enable-md2"
46         - os: linux
47           compiler: gcc-5
48           env: CONFIG_OPTS="-fsanitize=address"
49         - os: linux
50           compiler: gcc-5
51           env: CONFIG_OPTS="no-asm --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-crypto-mdebug enable-rc5 enable-md2"
52         - os: linux
53           compiler: clang-3.6
54           env: CONFIG_OPTS="no-engine"
55         - os: linux
56           compiler: gcc
57           env: CONFIG_OPTS="no-engine"
58         - os: linux
59           compiler: gcc-5
60           env: CONFIG_OPTS="no-engine"
61     exclude:
62         - os: osx
63           compiler: clang-3.6
64         - os: osx
65           compiler: gcc
66         - os: osx
67           compiler: gcc-5
68         - os: osx
69           compiler: i686-w64-mingw32-gcc
70         - os: osx
71           compiler: x86_64-w64-mingw32-gcc
72         - compiler: i686-w64-mingw32-gcc
73           env: CONFIG_OPTS="shared"
74         - compiler: x86_64-w64-mingw32-gcc
75           env: CONFIG_OPTS="shared"
76         - compiler: i686-w64-mingw32-gcc
77           env: CONFIG_OPTS="no-asm"
78         - compiler: x86_64-w64-mingw32-gcc
79           env: CONFIG_OPTS="no-asm"
80         - compiler: i686-w64-mingw32-gcc
81           env: CONFIG_OPTS="--unified shared"
82         - compiler: x86_64-w64-mingw32-gcc
83           env: CONFIG_OPTS="--unified shared"
84         - compiler: i686-w64-mingw32-gcc
85           env: CONFIG_OPTS="--unified no-asm"
86         - compiler: x86_64-w64-mingw32-gcc
87           env: CONFIG_OPTS="--unified no-asm"
88     allow_failures:
89         - compiler: i686-w64-mingw32-gcc
90           env: CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
91         - compiler: x86_64-w64-mingw32-gcc
92           env: CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
93         - compiler: i686-w64-mingw32-gcc
94           env: CONFIG_OPTS="--unified --debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
95         - compiler: x86_64-w64-mingw32-gcc
96           env: CONFIG_OPTS="--unified --debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
97         - compiler: clang-3.6
98           env: CONFIG_OPTS="no-engine"
99         - compiler: gcc-5
100           env: CONFIG_OPTS="no-engine"
101         - compiler: gcc
102           env: CONFIG_OPTS="no-engine"
103
104 before_script:
105     - sh .travis-create-release.sh $TRAVIS_OS_NAME
106     - tar -xvzf _srcdist.tar.gz
107     - cd _srcdist
108     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
109           export CROSS_COMPILE=${CC%%gcc}; unset CC;
110           ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
111       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
112           export CROSS_COMPILE=${CC%%gcc}; unset CC;
113           ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
114       else
115           ./config $CONFIG_OPTS;
116       fi
117     - cd ..
118
119 script:
120     - cd _srcdist
121     - make
122     - if [ -n "$CROSS_COMPILE" ]; then
123           export EXE_SHELL="wine" WINEPREFIX=`pwd`;
124       fi
125     - HARNESS_VERBOSE=yes make test
126     - cd ..
127
128 notifications:
129     email:
130         - openssl-commits@openssl.org
131