]>
Commit | Line | Data |
---|---|---|
9d1fcbeb RS |
1 | language: c |
2 | ||
3 | addons: | |
4 | apt_packages: | |
5 | - binutils-mingw-w64 | |
6 | - gcc-mingw-w64 | |
7 | ||
8 | os: | |
9 | - linux | |
10 | - osx | |
11 | ||
12 | compiler: | |
13 | - clang | |
14 | - gcc | |
15 | - i686-w64-mingw32-gcc | |
16 | - x86_64-w64-mingw32-gcc | |
17 | ||
18 | env: | |
19 | - CONFIG_OPTS="" | |
20 | - CONFIG_OPTS="shared" | |
dfa08ea7 | 21 | - CONFIG_OPTS="-d --strict-warnings" |
9d1fcbeb 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 | |
978b5d70 RS |
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" | |
9d1fcbeb RS |
33 | |
34 | before_script: | |
cf269a1a | 35 | - sh .travis-create-release.sh $TRAVIS_OS_NAME |
1e8a8729 RL |
36 | - tar -xvzf _srcdist.tar.gz |
37 | - cd _srcdist | |
9d1fcbeb 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 | |
45 | ./config $CONFIG_OPTS; | |
46 | fi | |
1e8a8729 | 47 | - cd .. |
9d1fcbeb RS |
48 | |
49 | script: | |
1e8a8729 | 50 | - cd _srcdist |
9d1fcbeb RS |
51 | - make |
52 | - if [ -z "$CROSS_COMPILE" ]; then make test; fi | |
1e8a8729 | 53 | - cd .. |
9d1fcbeb RS |
54 | |
55 | notifications: | |
56 | recipient: | |
9fca473b | 57 | secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4=" |
9d1fcbeb RS |
58 | email: |
59 | on_success: change | |
60 | on_failure: always |