.travis.yml 2.3 KB

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