Convert ERR_STRING_DATA to new multi-threading API
[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     - gcc
22
23 env:
24     - CONFIG_OPTS="shared"
25     - CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
26     - CONFIG_OPTS="" BUILDONLY="yes"
27     - CONFIG_OPTS="--classic" BUILDONLY="yes"
28     - CONFIG_OPTS="--classic shared" BUILDONLY="yes"
29     - CONFIG_OPTS="no-pic" BUILDONLY="yes"
30     - CONFIG_OPTS="no-engine" BUILDONLY="yes"
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="no-asm --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2"
40         - os: linux
41           compiler: gcc-5
42           env: CONFIG_OPTS="-fsanitize=address"
43         - os: linux
44           compiler: gcc-5
45           env: CONFIG_OPTS="no-asm --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2"
46         - os: linux
47           compiler: i686-w64-mingw32-gcc
48           env: CONFIG_OPTS="no-pic"
49         - os: linux
50           compiler: x86_64-w64-mingw32-gcc
51           env: CONFIG_OPTS="no-pic"
52     exclude:
53         - os: linux
54           compiler: clang
55         - os: osx
56           compiler: gcc
57
58 before_script:
59     - sh .travis-create-release.sh $TRAVIS_OS_NAME
60     - tar -xvzf _srcdist.tar.gz
61     - cd _srcdist
62     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
63           export CROSS_COMPILE=${CC%%gcc}; unset CC;
64           ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
65       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
66           export CROSS_COMPILE=${CC%%gcc}; unset CC;
67           ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
68       else
69           ./config $CONFIG_OPTS;
70       fi
71     - cd ..
72
73 script:
74     - cd _srcdist
75     - make
76     - if [ -z "$BUILDONLY" ]; then
77           if [ -n "$CROSS_COMPILE" ]; then
78               export EXE_SHELL="wine" WINEPREFIX=`pwd`;
79           fi;
80           HARNESS_VERBOSE=yes make test;
81       fi
82     - cd ..
83
84 notifications:
85     email:
86         - openssl-commits@openssl.org
87