Constify some X509_CRL functions.
[openssl.git] / .travis.yml
1 language: c
2 cache: ccache
3
4 addons:
5     apt:
6         packages:
7             - ccache
8             - clang-3.6
9             - gcc-5
10             - binutils-mingw-w64
11             - gcc-mingw-w64
12             - wine
13         sources:
14             - llvm-toolchain-precise-3.6
15             - ubuntu-toolchain-r-test
16
17 os:
18     - linux
19     - osx
20
21 compiler:
22     - clang
23     - gcc
24
25 env:
26     - CONFIG_OPTS="" DESTDIR="_install"
27     - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
28     - CONFIG_OPTS="--strict-warnings no-shared" BUILDONLY="yes"
29     - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes"
30     - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
31
32 matrix:
33     include:
34         - os: linux
35           compiler: clang-3.6
36           env: CONFIG_OPTS="no-shared enable-asan"
37         - os: linux
38           compiler: clang-3.6
39           env: CONFIG_OPTS="no-shared enable-msan"
40         - os: linux
41           compiler: clang-3.6
42           env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method -fno-sanitize=alignment"
43         - os: linux
44           compiler: clang-3.6
45           env: CONFIG_OPTS="no-shared no-asm enable-asan enable-rc5 enable-md2"
46         - os: linux
47           compiler: gcc-5
48           env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
49         - os: linux
50           compiler: i686-w64-mingw32-gcc
51           env: CONFIG_OPTS="no-pic"
52         - os: linux
53           compiler: x86_64-w64-mingw32-gcc
54           env: CONFIG_OPTS="no-pic"
55     exclude:
56         - os: linux
57           compiler: clang
58         - os: osx
59           compiler: gcc
60
61 before_script:
62     - sh .travis-create-release.sh $TRAVIS_OS_NAME
63     - tar -xvzf _srcdist.tar.gz
64     - mkdir _build;
65     - cd _build;
66     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
67           export CROSS_COMPILE=${CC%%gcc}; unset CC;
68           ../_srcdist/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           ../_srcdist/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
72       else
73           if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
74               CC="ccache $CC";
75           fi;
76           ../_srcdist/config $CONFIG_OPTS;
77       fi
78     - cd ..
79
80 script:
81     - cd _build;
82     - make update
83     - make
84     - if [ -z "$BUILDONLY" ]; then
85           if [ -n "$CROSS_COMPILE" ]; then
86               export EXE_SHELL="wine" WINEPREFIX=`pwd`;
87           fi;
88           HARNESS_VERBOSE=yes make test;
89       else
90           make build_tests;
91       fi
92     - if [ -n "$DESTDIR" ]; then
93           mkdir "../$DESTDIR";
94           make install install_docs DESTDIR="../$DESTDIR";
95       fi
96     - cd ..
97
98 notifications:
99     email:
100         - openssl-commits@openssl.org
101