]>
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: | |
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 AG |
34 | - os: linux |
35 | compiler: clang-3.6 | |
e951eca8 | 36 | env: CONFIG_OPTS="-fsanitize=address no-shared" |
6220acf8 AG |
37 | - os: linux |
38 | compiler: clang-3.6 | |
e951eca8 | 39 | env: CONFIG_OPTS="no-shared no-asm -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2 -fno-sanitize=alignment" |
6220acf8 AG |
40 | - os: linux |
41 | compiler: gcc-5 | |
e951eca8 | 42 | env: CONFIG_OPTS="no-shared -fsanitize=address" |
f386742c AG |
43 | - os: linux |
44 | compiler: gcc-5 | |
e951eca8 | 45 | env: CONFIG_OPTS="no-shared no-asm -fno-sanitize-recover -DPEDANTIC -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2" |
56cd71b4 EK |
46 | - os: linux |
47 | compiler: i686-w64-mingw32-gcc | |
48 | env: CONFIG_OPTS="no-pic" | |
49 | - os: linux | |
50 | compiler: x86_64-w64-mingw32-gcc | |
51 | env: CONFIG_OPTS="no-pic" | |
db9defdf | 52 | exclude: |
210efa8b EK |
53 | - os: linux |
54 | compiler: clang | |
dbf9a33c AP |
55 | - os: osx |
56 | compiler: gcc | |
db9defdf RS |
57 | |
58 | before_script: | |
382af61f | 59 | - sh .travis-create-release.sh $TRAVIS_OS_NAME |
475fc3d8 | 60 | - tar -xvzf _srcdist.tar.gz |
45c6e23c RL |
61 | - mkdir _build; |
62 | - cd _build; | |
db9defdf RS |
63 | - if [ "$CC" == i686-w64-mingw32-gcc ]; then |
64 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
9bf6eff7 | 65 | ../_srcdist/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf RS |
66 | elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then |
67 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
9bf6eff7 | 68 | ../_srcdist/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf | 69 | else |
4b857446 | 70 | if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then |
a70ca740 | 71 | CC="ccache $CC"; |
8cffddc0 | 72 | fi; |
9bf6eff7 | 73 | ../_srcdist/config $CONFIG_OPTS; |
db9defdf | 74 | fi |
475fc3d8 | 75 | - cd .. |
66c103bd AG |
76 | |
77 | script: | |
45c6e23c | 78 | - cd _build; |
db9defdf | 79 | - make |
b63447c1 | 80 | - if [ -z "$BUILDONLY" ]; then |
56cd71b4 EK |
81 | if [ -n "$CROSS_COMPILE" ]; then |
82 | export EXE_SHELL="wine" WINEPREFIX=`pwd`; | |
83 | fi; | |
b63447c1 | 84 | HARNESS_VERBOSE=yes make test; |
d7a275ee EK |
85 | else |
86 | make build_tests; | |
1a3ae788 | 87 | fi |
d227a302 RL |
88 | - if [ -n "$DESTDIR" ]; then |
89 | mkdir "../$DESTDIR"; | |
90 | make install DESTDIR="../$DESTDIR"; | |
91 | fi | |
475fc3d8 | 92 | - cd .. |
66c103bd AG |
93 | |
94 | notifications: | |
db9defdf | 95 | email: |
2d284623 | 96 | - openssl-commits@openssl.org |
b6a89161 | 97 |