]>
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 | 9 | - linux |
cef9dcbb AG |
10 | |
11 | compiler: | |
c038e6b5 RS |
12 | - clang |
13 | - gcc | |
14 | - i686-w64-mingw32-gcc | |
15 | - x86_64-w64-mingw32-gcc | |
cef9dcbb AG |
16 | |
17 | env: | |
c038e6b5 RS |
18 | - CONFIG_OPTS="" |
19 | - CONFIG_OPTS="shared" | |
920f7cf8 | 20 | - CONFIG_OPTS="-d --strict-warnings" |
c038e6b5 RS |
21 | |
22 | matrix: | |
23 | exclude: | |
24 | - os: osx | |
25 | compiler: i686-w64-mingw32-gcc | |
26 | - os: osx | |
27 | compiler: x86_64-w64-mingw32-gcc | |
bb7b893d AG |
28 | - compiler: i686-w64-mingw32-gcc |
29 | env: CONFIG_OPTS="-d --strict-warnings" | |
30 | - compiler: x86_64-w64-mingw32-gcc | |
31 | env: CONFIG_OPTS="-d --strict-warnings" | |
c038e6b5 RS |
32 | |
33 | before_script: | |
02d013e6 | 34 | - sh .travis-create-release.sh $TRAVIS_OS_NAME |
b12fd506 RL |
35 | - tar -xvzf _srcdist.tar.gz |
36 | - cd _srcdist | |
c038e6b5 RS |
37 | - if [ "$CC" == i686-w64-mingw32-gcc ]; then |
38 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
39 | ./Configure mingw $CONFIG_OPTS; | |
40 | elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then | |
41 | export CROSS_COMPILE=${CC%%gcc}; unset CC; | |
42 | ./Configure mingw64 $CONFIG_OPTS; | |
43 | else | |
bb7b893d AG |
44 | if [ "$CC" == gcc ]; then |
45 | export CONFIG_OPTS="$CONFIG_OPTS -Wno-error=shadow"; | |
46 | fi; | |
c038e6b5 RS |
47 | ./config $CONFIG_OPTS; |
48 | fi | |
b12fd506 | 49 | - cd .. |
cef9dcbb AG |
50 | |
51 | script: | |
b12fd506 | 52 | - cd _srcdist |
14084825 RS |
53 | - if make ; then |
54 | echo -e '+\057 MAKE OK'; | |
55 | else | |
56 | echo -e '+\057 MAKE FAILED'; false; | |
57 | fi; | |
58 | - if [ -z "$CROSS_COMPILE" ]; then | |
59 | if make test; then | |
60 | echo -e '+\057\057 MAKE TEST OK'; | |
61 | else | |
62 | echo -e '+\057\057 MAKE TEST FAILED'; false; | |
63 | fi; | |
64 | fi | |
b12fd506 | 65 | - cd .. |
cef9dcbb AG |
66 | |
67 | notifications: | |
c038e6b5 | 68 | email: |
ba2bf831 | 69 | secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4=" |