]> git.ipfire.org Git - thirdparty/openssl.git/blob - .travis.yml
Travis: add a build with no-stdio
[thirdparty/openssl.git] / .travis.yml
1 language: c
2 cache: ccache
3
4 before_install:
5 - pip install --user cpp-coveralls
6
7 addons:
8 apt:
9 packages:
10 - ccache
11 - clang-3.6
12 - gcc-5
13 - binutils-mingw-w64
14 - gcc-mingw-w64
15 - wine
16 sources:
17 - llvm-toolchain-precise-3.6
18 - ubuntu-toolchain-r-test
19
20 os:
21 - linux
22 - osx
23
24 compiler:
25 - clang
26 - gcc
27
28 env:
29 - CONFIG_OPTS="" DESTDIR="_install"
30 - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
31 - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes"
32 - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
33 - CONFIG_OPTS="no-stdio --strict-warnings" BUILDONLY="yes"
34
35 matrix:
36 include:
37 - os: linux
38 compiler: gcc
39 env: CONFIG_OPTS="--debug --coverage no-asm enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers" COVERALLS="yes"
40 - os: linux
41 compiler: clang-3.6
42 env: CONFIG_OPTS="no-shared enable-asan"
43 - os: linux
44 compiler: clang-3.6
45 env: CONFIG_OPTS="no-shared enable-msan"
46 - os: linux
47 compiler: clang-3.6
48 env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method -fno-sanitize=alignment"
49 - os: linux
50 compiler: clang-3.6
51 env: CONFIG_OPTS="no-shared no-asm enable-asan enable-rc5 enable-md2"
52 - os: linux
53 compiler: clang-3.6
54 env: CONFIG_OPTS="no-stdio"
55 - os: linux
56 compiler: gcc-5
57 env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
58 - os: linux
59 compiler: i686-w64-mingw32-gcc
60 env: CONFIG_OPTS="no-pic"
61 - os: linux
62 compiler: i686-w64-mingw32-gcc
63 env: CONFIG_OPTS="no-stdio"
64 - os: linux
65 compiler: x86_64-w64-mingw32-gcc
66 env: CONFIG_OPTS="no-pic"
67 - os: linux
68 compiler: x86_64-w64-mingw32-gcc
69 env: CONFIG_OPTS="no-stdio"
70 exclude:
71 - os: linux
72 compiler: clang
73 - os: osx
74 compiler: gcc
75
76 before_script:
77 - if [ -n "$DESTDIR" ]; then
78 sh .travis-create-release.sh $TRAVIS_OS_NAME;
79 tar -xvzf _srcdist.tar.gz;
80 mkdir _build;
81 cd _build;
82 srcdir=../_srcdist;
83 top=..;
84 else
85 srcdir=.;
86 top=.;
87 fi
88 - if [ "$CC" == i686-w64-mingw32-gcc ]; then
89 export CROSS_COMPILE=${CC%%gcc}; unset CC;
90 $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
91 elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
92 export CROSS_COMPILE=${CC%%gcc}; unset CC;
93 $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
94 else
95 if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
96 CC="ccache $CC";
97 fi;
98 $srcdir/config $CONFIG_OPTS;
99 fi
100 - cd $top
101
102 script:
103 - if [ -n "$DESTDIR" ]; then
104 cd _build;
105 top=..;
106 else
107 top=.;
108 fi
109 - make update
110 - make
111 - if [ -z "$BUILDONLY" ]; then
112 if [ -n "$CROSS_COMPILE" ]; then
113 export EXE_SHELL="wine" WINEPREFIX=`pwd`;
114 fi;
115 HARNESS_VERBOSE=yes make test;
116 else
117 make build_tests;
118 fi
119 - if [ -n "$DESTDIR" ]; then
120 mkdir "../$DESTDIR";
121 make install install_docs DESTDIR="../$DESTDIR";
122 fi
123 - cd $top
124
125 after_success:
126 - if [ -n "$COVERALLS" ]; then
127 coveralls -b . --gcov-options '\-lp';
128 fi;
129
130 notifications:
131 email:
132 - openssl-commits@openssl.org
133