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