]>
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 |
6220acf8 | 8 | - clang-3.6 |
f386742c | 9 | - gcc-5 |
56cd71b4 EK |
10 | - binutils-mingw-w64 |
11 | - gcc-mingw-w64 | |
12 | - wine | |
f386742c | 13 | sources: |
6220acf8 | 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: | |
db9defdf | 26 | - CONFIG_OPTS="shared" |
1119ddff | 27 | - CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2" |
210efa8b | 28 | - CONFIG_OPTS="" BUILDONLY="yes" |
69633bb4 RL |
29 | - CONFIG_OPTS="--classic" BUILDONLY="yes" |
30 | - CONFIG_OPTS="--classic shared" BUILDONLY="yes" | |
210efa8b EK |
31 | - CONFIG_OPTS="no-pic" BUILDONLY="yes" |
32 | - CONFIG_OPTS="no-engine" BUILDONLY="yes" | |
db9defdf RS |
33 | |
34 | matrix: | |
f386742c | 35 | include: |
6220acf8 AG |
36 | - os: linux |
37 | compiler: clang-3.6 | |
38 | env: CONFIG_OPTS="-fsanitize=address" | |
39 | - os: linux | |
40 | compiler: clang-3.6 | |
31356509 | 41 | env: CONFIG_OPTS="no-asm --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2" |
6220acf8 AG |
42 | - os: linux |
43 | compiler: gcc-5 | |
44 | env: CONFIG_OPTS="-fsanitize=address" | |
f386742c AG |
45 | - os: linux |
46 | compiler: gcc-5 | |
31356509 | 47 | env: CONFIG_OPTS="no-asm --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2" |
56cd71b4 EK |
48 | - os: linux |
49 | compiler: i686-w64-mingw32-gcc | |
50 | env: CONFIG_OPTS="no-pic" | |
51 | - os: linux | |
52 | compiler: x86_64-w64-mingw32-gcc | |
53 | env: CONFIG_OPTS="no-pic" | |
db9defdf | 54 | exclude: |
210efa8b EK |
55 | - os: linux |
56 | compiler: clang | |
dbf9a33c AP |
57 | - os: osx |
58 | compiler: gcc | |
db9defdf RS |
59 | |
60 | before_script: | |
382af61f | 61 | - sh .travis-create-release.sh $TRAVIS_OS_NAME |
475fc3d8 | 62 | - tar -xvzf _srcdist.tar.gz |
64b9d84b | 63 | - if echo "$CONFIG_OPTS" | grep -e "--classic" >/dev/null; then |
b7aacc3a RL |
64 | srcdir=.; |
65 | cd _srcdist; | |
66 | else | |
32e4cc0c | 67 | srcdir=../_srcdist; |
de439d44 RL |
68 | mkdir _build; |
69 | cd _build; | |
c9aad4ff RL |
70 | if which ccache >/dev/null; then |
71 | CC="ccache $CC"; | |
72 | fi | |
de439d44 | 73 | fi |
db9defdf RS |
74 | - if [ "$CC" == i686-w64-mingw32-gcc ]; then |
75 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
de439d44 | 76 | $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf RS |
77 | elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then |
78 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
de439d44 | 79 | $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf | 80 | else |
de439d44 | 81 | $srcdir/config $CONFIG_OPTS; |
db9defdf | 82 | fi |
475fc3d8 | 83 | - cd .. |
66c103bd AG |
84 | |
85 | script: | |
64b9d84b | 86 | - if echo "$CONFIG_OPTS" | grep -e "--classic" >/dev/null; then |
de439d44 | 87 | cd _srcdist; |
b7aacc3a RL |
88 | else |
89 | cd _build; | |
de439d44 | 90 | fi |
db9defdf | 91 | - make |
b63447c1 | 92 | - if [ -z "$BUILDONLY" ]; then |
56cd71b4 EK |
93 | if [ -n "$CROSS_COMPILE" ]; then |
94 | export EXE_SHELL="wine" WINEPREFIX=`pwd`; | |
95 | fi; | |
b63447c1 | 96 | HARNESS_VERBOSE=yes make test; |
1a3ae788 | 97 | fi |
475fc3d8 | 98 | - cd .. |
66c103bd AG |
99 | |
100 | notifications: | |
db9defdf | 101 | email: |
2d284623 | 102 | - openssl-commits@openssl.org |
b6a89161 | 103 |