]>
Commit | Line | Data |
---|---|---|
66c103bd | 1 | language: c |
bd5fbfe2 | 2 | cache: ccache |
66c103bd | 3 | |
ad0a0a3a EK |
4 | before_install: |
5 | - pip install --user cpp-coveralls | |
6 | ||
db9defdf | 7 | addons: |
f386742c AG |
8 | apt: |
9 | packages: | |
bd5fbfe2 | 10 | - ccache |
6f60a5a1 | 11 | - clang-3.6 |
f386742c | 12 | - gcc-5 |
56cd71b4 EK |
13 | - binutils-mingw-w64 |
14 | - gcc-mingw-w64 | |
15 | - wine | |
f386742c | 16 | sources: |
6f60a5a1 | 17 | - llvm-toolchain-precise-3.6 |
f386742c | 18 | - ubuntu-toolchain-r-test |
db9defdf | 19 | |
66c103bd | 20 | os: |
db9defdf RS |
21 | - linux |
22 | - osx | |
66c103bd AG |
23 | |
24 | compiler: | |
db9defdf RS |
25 | - clang |
26 | - gcc | |
66c103bd AG |
27 | |
28 | env: | |
d227a302 | 29 | - CONFIG_OPTS="" DESTDIR="_install" |
e951eca8 | 30 | - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2" |
b5914707 | 31 | - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes" |
e951eca8 | 32 | - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes" |
b4aaf194 | 33 | - CONFIG_OPTS="no-stdio --strict-warnings" BUILDONLY="yes" |
db9defdf RS |
34 | |
35 | matrix: | |
f386742c | 36 | include: |
ad0a0a3a EK |
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" | |
6220acf8 | 40 | - os: linux |
6f60a5a1 | 41 | compiler: clang-3.6 |
a7cbe963 | 42 | env: CONFIG_OPTS="no-shared enable-asan" |
29df3061 EK |
43 | - os: linux |
44 | compiler: clang-3.6 | |
45 | env: CONFIG_OPTS="no-shared enable-msan" | |
6220acf8 | 46 | - os: linux |
6f60a5a1 | 47 | compiler: clang-3.6 |
eb5561cd | 48 | env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method -fno-sanitize=alignment" |
6f60a5a1 RS |
49 | - os: linux |
50 | compiler: clang-3.6 | |
51 | env: CONFIG_OPTS="no-shared no-asm enable-asan enable-rc5 enable-md2" | |
b4aaf194 RL |
52 | - os: linux |
53 | compiler: clang-3.6 | |
54 | env: CONFIG_OPTS="no-stdio" | |
6220acf8 AG |
55 | - os: linux |
56 | compiler: gcc-5 | |
6f60a5a1 | 57 | env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC" |
56cd71b4 EK |
58 | - os: linux |
59 | compiler: i686-w64-mingw32-gcc | |
60 | env: CONFIG_OPTS="no-pic" | |
b4aaf194 RL |
61 | - os: linux |
62 | compiler: i686-w64-mingw32-gcc | |
63 | env: CONFIG_OPTS="no-stdio" | |
56cd71b4 EK |
64 | - os: linux |
65 | compiler: x86_64-w64-mingw32-gcc | |
66 | env: CONFIG_OPTS="no-pic" | |
b4aaf194 RL |
67 | - os: linux |
68 | compiler: x86_64-w64-mingw32-gcc | |
69 | env: CONFIG_OPTS="no-stdio" | |
db9defdf | 70 | exclude: |
210efa8b EK |
71 | - os: linux |
72 | compiler: clang | |
dbf9a33c AP |
73 | - os: osx |
74 | compiler: gcc | |
db9defdf RS |
75 | |
76 | before_script: | |
262ee9a2 RL |
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 | |
db9defdf RS |
88 | - if [ "$CC" == i686-w64-mingw32-gcc ]; then |
89 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
262ee9a2 | 90 | $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf RS |
91 | elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then |
92 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
262ee9a2 | 93 | $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format; |
db9defdf | 94 | else |
4b857446 | 95 | if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then |
a70ca740 | 96 | CC="ccache $CC"; |
8cffddc0 | 97 | fi; |
ffb261ff | 98 | $srcdir/config -v $CONFIG_OPTS; |
db9defdf | 99 | fi |
262ee9a2 | 100 | - cd $top |
66c103bd AG |
101 | |
102 | script: | |
a4ffbbee RL |
103 | - if [ -z "$BUILDONLY" ]; then |
104 | make="make -s"; | |
105 | else | |
106 | make="make"; | |
107 | fi | |
262ee9a2 RL |
108 | - if [ -n "$DESTDIR" ]; then |
109 | cd _build; | |
110 | top=..; | |
111 | else | |
112 | top=.; | |
113 | fi | |
a4ffbbee RL |
114 | - $make update |
115 | - $make | |
b63447c1 | 116 | - if [ -z "$BUILDONLY" ]; then |
56cd71b4 EK |
117 | if [ -n "$CROSS_COMPILE" ]; then |
118 | export EXE_SHELL="wine" WINEPREFIX=`pwd`; | |
119 | fi; | |
b63447c1 | 120 | HARNESS_VERBOSE=yes make test; |
d7a275ee | 121 | else |
a4ffbbee | 122 | $make build_tests; |
1a3ae788 | 123 | fi |
d227a302 RL |
124 | - if [ -n "$DESTDIR" ]; then |
125 | mkdir "../$DESTDIR"; | |
a4ffbbee | 126 | $make install install_docs DESTDIR="../$DESTDIR"; |
d227a302 | 127 | fi |
262ee9a2 | 128 | - cd $top |
66c103bd | 129 | |
ad0a0a3a EK |
130 | after_success: |
131 | - if [ -n "$COVERALLS" ]; then | |
cec0a002 | 132 | coveralls -b . --gcov-options '\-lp'; |
ad0a0a3a EK |
133 | fi; |
134 | ||
66c103bd | 135 | notifications: |
db9defdf | 136 | email: |
2d284623 | 137 | - openssl-commits@openssl.org |
b6a89161 | 138 |