]>
Commit | Line | Data |
---|---|---|
cef9dcbb AG |
1 | language: c |
2 | ||
c038e6b5 RS |
3 | addons: |
4 | apt_packages: | |
5 | - binutils-mingw-w64 | |
6 | - gcc-mingw-w64 | |
7 | ||
cef9dcbb | 8 | os: |
c038e6b5 RS |
9 | - linux |
10 | - osx | |
cef9dcbb AG |
11 | |
12 | compiler: | |
c038e6b5 RS |
13 | - clang |
14 | - gcc | |
15 | - i686-w64-mingw32-gcc | |
16 | - x86_64-w64-mingw32-gcc | |
cef9dcbb AG |
17 | |
18 | env: | |
c038e6b5 RS |
19 | - CONFIG_OPTS="" |
20 | - CONFIG_OPTS="shared" | |
920f7cf8 | 21 | - CONFIG_OPTS="-d --strict-warnings" |
c038e6b5 RS |
22 | |
23 | matrix: | |
24 | exclude: | |
25 | - os: osx | |
26 | compiler: i686-w64-mingw32-gcc | |
27 | - os: osx | |
28 | compiler: x86_64-w64-mingw32-gcc | |
bb7b893d AG |
29 | - compiler: i686-w64-mingw32-gcc |
30 | env: CONFIG_OPTS="-d --strict-warnings" | |
31 | - compiler: x86_64-w64-mingw32-gcc | |
32 | env: CONFIG_OPTS="-d --strict-warnings" | |
c038e6b5 RS |
33 | |
34 | before_script: | |
b12fd506 RL |
35 | - make -f Makefile.org TARFILE=_srcdist.tar NAME=_srcdist dist |
36 | - tar -xvzf _srcdist.tar.gz | |
37 | - cd _srcdist | |
c038e6b5 RS |
38 | - if [ "$CC" == i686-w64-mingw32-gcc ]; then |
39 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
40 | ./Configure mingw $CONFIG_OPTS; | |
41 | elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then | |
42 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
43 | ./Configure mingw64 $CONFIG_OPTS; | |
44 | else | |
bb7b893d AG |
45 | if [ "$CC" == gcc ]; then |
46 | export CONFIG_OPTS="$CONFIG_OPTS -Wno-error=shadow"; | |
47 | fi; | |
c038e6b5 RS |
48 | ./config $CONFIG_OPTS; |
49 | fi | |
b12fd506 | 50 | - cd .. |
cef9dcbb AG |
51 | |
52 | script: | |
b12fd506 | 53 | - cd _srcdist |
c038e6b5 RS |
54 | - make |
55 | - if [ -z "$CROSS_COMPILE" ]; then make test; fi | |
b12fd506 | 56 | - cd .. |
cef9dcbb AG |
57 | |
58 | notifications: | |
c038e6b5 | 59 | email: |
bb7b893d | 60 | - openssl-commits@openssl.org |