]> git.ipfire.org Git - thirdparty/openssl.git/blob - .travis.yml
Run tests on Travis for mingw builds as well
[thirdparty/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="--debug --strict-warnings"
31
32 matrix:
33 include:
34 - os: linux
35 compiler: clang-3.6
36 env: CONFIG_OPTS="-fsanitize=address"
37 - os: linux
38 compiler: clang-3.6
39 env: CONFIG_OPTS="--debug --strict-warnings -fsanitize=address"
40 - os: linux
41 compiler: gcc-5
42 env: CONFIG_OPTS="-fsanitize=address"
43 - os: linux
44 compiler: gcc-5
45 env: CONFIG_OPTS="--debug --strict-warnings -fsanitize=address"
46 exclude:
47 - os: osx
48 compiler: clang-3.6
49 - os: osx
50 compiler: gcc-5
51 - os: osx
52 compiler: i686-w64-mingw32-gcc
53 - os: osx
54 compiler: x86_64-w64-mingw32-gcc
55 - compiler: i686-w64-mingw32-gcc
56 env: CONFIG_OPTS="shared"
57 - compiler: x86_64-w64-mingw32-gcc
58 env: CONFIG_OPTS="shared"
59 allow_failures:
60 - compiler: i686-w64-mingw32-gcc
61 env: CONFIG_OPTS="--debug --strict-warnings"
62 - compiler: x86_64-w64-mingw32-gcc
63 env: CONFIG_OPTS="--debug --strict-warnings"
64
65 before_script:
66 - if [ "$CC" == i686-w64-mingw32-gcc ]; then
67 export CROSS_COMPILE=${CC%%gcc}; unset CC;
68 ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
69 elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
70 export CROSS_COMPILE=${CC%%gcc}; unset CC;
71 ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
72 else
73 ./config $CONFIG_OPTS;
74 fi
75
76 script:
77 - make
78 - if [ -n "$CROSS_COMPILE" ]; then
79 export EXE_SHELL="wine" WINEPREFIX=`pwd`;
80 fi
81 - make test
82
83 notifications:
84 email:
85 - openssl-commits@openssl.org