]>
Commit | Line | Data |
---|---|---|
0bc650d5 | 1 | dist: trusty |
cef9dcbb AG |
2 | language: c |
3 | ||
c038e6b5 RS |
4 | addons: |
5 | apt_packages: | |
6 | - binutils-mingw-w64 | |
7 | - gcc-mingw-w64 | |
8 | ||
cef9dcbb | 9 | os: |
c038e6b5 | 10 | - linux |
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: | |
02d013e6 | 35 | - sh .travis-create-release.sh $TRAVIS_OS_NAME |
b12fd506 RL |
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 |
14084825 RS |
54 | - if make ; then |
55 | echo -e '+\057 MAKE OK'; | |
56 | else | |
57 | echo -e '+\057 MAKE FAILED'; false; | |
58 | fi; | |
59 | - if [ -z "$CROSS_COMPILE" ]; then | |
60 | if make test; then | |
61 | echo -e '+\057\057 MAKE TEST OK'; | |
62 | else | |
63 | echo -e '+\057\057 MAKE TEST FAILED'; false; | |
64 | fi; | |
65 | fi | |
b12fd506 | 66 | - cd .. |
cef9dcbb AG |
67 | |
68 | notifications: | |
c038e6b5 | 69 | email: |
ba2bf831 | 70 | secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4=" |