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