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