Add comment about X509_print
[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
36           env: CONFIG_OPTS="no-shared enable-asan"
37 #        - os: linux
38 #          compiler: clang-3.6
39 #          compiler: clang
40 #          env: CONFIG_OPTS="no-shared enable-asan"
41 #        - os: linux
42 #          compiler: clang-3.6
43 #          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -fno-sanitize=alignment"
44         - os: linux
45           compiler: gcc-5
46           env: CONFIG_OPTS="no-shared no-asm enable-rc5 enable-md2"
47         - os: linux
48           compiler: gcc-5
49           env: CONFIG_OPTS="no-asm enable-rc5 enable-md2 -DPEDANTIC"
50         - os: linux
51           compiler: i686-w64-mingw32-gcc
52           env: CONFIG_OPTS="no-pic"
53         - os: linux
54           compiler: x86_64-w64-mingw32-gcc
55           env: CONFIG_OPTS="no-pic"
56     exclude:
57         - os: linux
58           compiler: clang
59         - os: osx
60           compiler: gcc
61
62 before_script:
63     - sh .travis-create-release.sh $TRAVIS_OS_NAME
64     - tar -xvzf _srcdist.tar.gz
65     - mkdir _build;
66     - cd _build;
67     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
68           export CROSS_COMPILE=${CC%%gcc}; unset CC;
69           ../_srcdist/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
70       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
71           export CROSS_COMPILE=${CC%%gcc}; unset CC;
72           ../_srcdist/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
73       else
74           if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
75               CC="ccache $CC";
76           fi;
77           ../_srcdist/config $CONFIG_OPTS;
78       fi
79     - cd ..
80
81 script:
82     - cd _build;
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