ARMv4 assembly pack: allow Thumb2 even in iOS build,
[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"
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"
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"
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"
67         - compiler: x86_64-w64-mingw32-gcc
68           env: CONFIG_OPTS="--debug --strict-warnings"
69
70 before_script:
71     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
72           export CROSS_COMPILE=${CC%%gcc}; unset CC;
73           ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
74       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
75           export CROSS_COMPILE=${CC%%gcc}; unset CC;
76           ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
77       else
78           ./config $CONFIG_OPTS;
79       fi
80
81 script:
82     - make
83     - if [ -n "$CROSS_COMPILE" ]; then
84           export EXE_SHELL="wine" WINEPREFIX=`pwd`;
85       fi
86     - make test
87
88 notifications:
89     email:
90         - openssl-commits@openssl.org