001180e811c81b459ff97dbb75acb22dd479e868
[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
56         - os: osx
57           compiler: gcc-5
58         - os: osx
59           compiler: i686-w64-mingw32-gcc
60         - os: osx
61           compiler: x86_64-w64-mingw32-gcc
62         - compiler: i686-w64-mingw32-gcc
63           env: CONFIG_OPTS="shared"
64         - compiler: x86_64-w64-mingw32-gcc
65           env: CONFIG_OPTS="shared"
66         - compiler: i686-w64-mingw32-gcc
67           env: CONFIG_OPTS="no-asm"
68         - compiler: x86_64-w64-mingw32-gcc
69           env: CONFIG_OPTS="no-asm"
70         - compiler: i686-w64-mingw32-gcc
71           env: CONFIG_OPTS="--unified shared"
72         - compiler: x86_64-w64-mingw32-gcc
73           env: CONFIG_OPTS="--unified shared"
74         - compiler: i686-w64-mingw32-gcc
75           env: CONFIG_OPTS="--unified no-asm"
76         - compiler: x86_64-w64-mingw32-gcc
77           env: CONFIG_OPTS="--unified no-asm"
78     allow_failures:
79         - compiler: i686-w64-mingw32-gcc
80           env: CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
81         - compiler: x86_64-w64-mingw32-gcc
82           env: CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
83         - compiler: i686-w64-mingw32-gcc
84           env: CONFIG_OPTS="--unified --debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
85         - compiler: x86_64-w64-mingw32-gcc
86           env: CONFIG_OPTS="--unified --debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
87
88 before_script:
89     - sh .travis-create-release.sh $TRAVIS_OS_NAME
90     - tar -xvzf _srcdist.tar.gz
91     - cd _srcdist
92     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
93           export CROSS_COMPILE=${CC%%gcc}; unset CC;
94           ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
95       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
96           export CROSS_COMPILE=${CC%%gcc}; unset CC;
97           ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
98       else
99           ./config $CONFIG_OPTS;
100       fi
101     - cd ..
102
103 script:
104     - cd _srcdist
105     - make
106     - if [ -n "$CROSS_COMPILE" ]; then
107           export EXE_SHELL="wine" WINEPREFIX=`pwd`;
108       fi
109     - HARNESS_VERBOSE=yes make test
110     - cd ..
111
112 notifications:
113     email:
114         - openssl-commits@openssl.org