]>
Commit | Line | Data |
---|---|---|
66c103bd | 1 | language: c |
bd5fbfe2 | 2 | cache: ccache |
66c103bd | 3 | |
db9defdf | 4 | addons: |
f386742c AG |
5 | apt: |
6 | packages: | |
bd5fbfe2 | 7 | - ccache |
6f60a5a1 | 8 | - clang-3.6 |
f386742c | 9 | - gcc-5 |
56cd71b4 EK |
10 | - binutils-mingw-w64 |
11 | - gcc-mingw-w64 | |
12 | - wine | |
f386742c | 13 | sources: |
6f60a5a1 | 14 | - llvm-toolchain-precise-3.6 |
f386742c | 15 | - ubuntu-toolchain-r-test |
db9defdf | 16 | |
66c103bd | 17 | os: |
db9defdf RS |
18 | - linux |
19 | - osx | |
66c103bd AG |
20 | |
21 | compiler: | |
db9defdf RS |
22 | - clang |
23 | - gcc | |
66c103bd AG |
24 | |
25 | env: | |
d227a302 | 26 | - CONFIG_OPTS="" DESTDIR="_install" |
e951eca8 MC |
27 | - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2" |
28 | - CONFIG_OPTS="--strict-warnings no-shared" BUILDONLY="yes" | |
b5914707 | 29 | - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes" |
e951eca8 | 30 | - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes" |
db9defdf RS |
31 | |
32 | matrix: | |
f386742c | 33 | include: |
6220acf8 | 34 | - os: linux |
6f60a5a1 | 35 | compiler: clang-3.6 |
a7cbe963 | 36 | env: CONFIG_OPTS="no-shared enable-asan" |
29df3061 EK |
37 | - os: linux |
38 | compiler: clang-3.6 | |
39 | env: CONFIG_OPTS="no-shared enable-msan" | |
6220acf8 | 40 | - os: linux |
6f60a5a1 | 41 | compiler: clang-3.6 |
eb5561cd | 42 | env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method -fno-sanitize=alignment" |
6f60a5a1 RS |
43 | - os: linux |
44 | compiler: clang-3.6 | |
45 | env: CONFIG_OPTS="no-shared no-asm enable-asan enable-rc5 enable-md2" | |
6220acf8 AG |
46 | - os: linux |
47 | compiler: gcc-5 | |
6f60a5a1 | 48 | env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC" |
56cd71b4 EK |
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" | |
db9defdf | 55 | exclude: |
210efa8b EK |
56 | - os: linux |
57 | compiler: clang | |
dbf9a33c AP |
58 | - os: osx |
59 | compiler: gcc | |
db9defdf RS |
60 | |
61 | before_script: | |
262ee9a2 RL |
62 | - if [ -n "$DESTDIR" ]; then |
63 | sh .travis-create-release.sh $TRAVIS_OS_NAME; | |
64 | tar -xvzf _srcdist.tar.gz; | |
65 | mkdir _build; | |
66 | cd _build; | |
67 | srcdir=../_srcdist; | |
68 | top=..; | |
69 | else | |
70 | srcdir=.; | |
71 | top=.; | |
72 | fi | |
db9defdf RS |
73 | - if [ "$CC" == i686-w64-mingw32-gcc ]; then |
74 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
262ee9a2 | 75 | $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf RS |
76 | elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then |
77 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
262ee9a2 | 78 | $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf | 79 | else |
4b857446 | 80 | if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then |
a70ca740 | 81 | CC="ccache $CC"; |
8cffddc0 | 82 | fi; |
262ee9a2 | 83 | $srcdir/config $CONFIG_OPTS; |
db9defdf | 84 | fi |
262ee9a2 | 85 | - cd $top |
66c103bd AG |
86 | |
87 | script: | |
262ee9a2 RL |
88 | - if [ -n "$DESTDIR" ]; then |
89 | cd _build; | |
90 | top=..; | |
91 | else | |
92 | top=.; | |
93 | fi | |
941b10bd | 94 | - make update |
db9defdf | 95 | - make |
b63447c1 | 96 | - if [ -z "$BUILDONLY" ]; then |
56cd71b4 EK |
97 | if [ -n "$CROSS_COMPILE" ]; then |
98 | export EXE_SHELL="wine" WINEPREFIX=`pwd`; | |
99 | fi; | |
b63447c1 | 100 | HARNESS_VERBOSE=yes make test; |
d7a275ee EK |
101 | else |
102 | make build_tests; | |
1a3ae788 | 103 | fi |
d227a302 RL |
104 | - if [ -n "$DESTDIR" ]; then |
105 | mkdir "../$DESTDIR"; | |
a3414dc8 | 106 | make install install_docs DESTDIR="../$DESTDIR"; |
d227a302 | 107 | fi |
262ee9a2 | 108 | - cd $top |
66c103bd AG |
109 | |
110 | notifications: | |
db9defdf | 111 | email: |
2d284623 | 112 | - openssl-commits@openssl.org |
b6a89161 | 113 |