.travis.yml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. language: cpp
  2. compiler:
  3. - clang
  4. - gcc
  5. before_install:
  6. - if [ "$CXX" = "g++" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
  7. - sudo apt-get -y update
  8. - sudo apt-get -y install tcl tcl-dev
  9. - if [ "$CXX" = "g++" ]; then echo sudo apt-get -y install libcppunit-dev libcppunit-1.13-0; fi
  10. - if [ "$CXX" = "g++" ]; then sudo apt-get -y install gcc-6 g++-6; fi
  11. - if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
  12. - if [ "$CXX" = "clang++" ]; then sudo apt-get -y install clang-3.6; fi
  13. - if [ "$CXX" = "clang++" ]; then svn co --quiet --trust-server-cert --non-interactive https://llvm.org/svn/llvm-project/libcxxabi/trunk@r249649 libcxxabi; fi
  14. - if [ "$CXX" = "clang++" ]; then svn co --quiet --trust-server-cert --non-interactive https://llvm.org/svn/llvm-project/libcxx/trunk@r249595 libcxx; fi
  15. - if [ "$CXX" = "clang++" ]; then (cd libcxx/lib && env CXX="clang++-3.6 -I ../../libcxxabi/include" sh buildit); fi
  16. - if [ "$CXX" = "clang++" ]; then sudo cp libcxx/lib/libc++.so.1.0 /usr/lib/; fi
  17. - if [ "$CXX" = "clang++" ]; then sudo mkdir /usr/include/c++/v1; fi
  18. - if [ "$CXX" = "clang++" ]; then sudo cp -r libcxx/include/* /usr/include/c++/v1/; fi
  19. - if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++.so.1.0 /usr/lib/libc++.so; fi
  20. - if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++.so.1.0 /usr/lib/libc++.so.1; fi
  21. - if [ "$CXX" = "clang++" ]; then (cd libcxxabi/lib && env CXX="clang++-3.6 -I ../../libcxx/include" sh buildit); fi
  22. - if [ "$CXX" = "clang++" ]; then sudo cp libcxxabi/lib/libc++abi.so.1.0 /usr/lib/; fi
  23. - if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++abi.so.1.0 /usr/lib/libc++abi.so; fi
  24. - if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++abi.so.1.0 /usr/lib/libc++abi.so.1; fi
  25. - if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++" CPPUNIT_CFLAGS="-stdlib=libc++" LDFLAGS="-stdlib=libc++ -lc++abi"; fi
  26. - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
  27. - (wget http://dev-www.libreoffice.org/src/cppunit-1.14.0.tar.gz && tar -zxvf cppunit-1.14.0.tar.gz && cd cppunit-1.14.0 && ./configure --prefix=/usr --disable-doc --disable-doxygen --disable-html-docs && make -j2 V=1 && sudo make install)
  28. - export CPPFLAGS="-D_FORTIFY_SOURCE=2"
  29. - echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
  30. # Skip install
  31. install: true
  32. script:
  33. - if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then ./configure; fi
  34. - if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then make -j2 V=1; fi
  35. - if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then make -j2 test V=1; fi
  36. # Coverity configuration
  37. env:
  38. global:
  39. # COVERITY_SCAN_TOKEN
  40. - secure: "kyAOuW9+HUbGel/mzT9rMP7gUcduUwpg6x0UjGEVgAMkv3vxRnF1ZMh2Bgcrna59IDzsacULkelDBm0+6hqEMJYmyWhb6vtwt40TLszBMFKku9Y1S1JQzyX9wvsiWC8OK2fzhbH36c45OaA0Eu9DrBg2FNQ7ZKyQkHBjhyagU8o="
  41. addons:
  42. coverity_scan:
  43. project:
  44. name: "wraith/wraith"
  45. description: "Build submitted via Travis CI"
  46. notification_email: bryan-coverity@shatow.net
  47. build_command_prepend: "cov-configure --comptype g++ --compiler g++-6 --template; ./configure"
  48. build_command: "make -j2 V=1"
  49. branch_pattern: coverity_scan
  50. # State we need old build infrastructure for now
  51. sudo: required
  52. dist: trusty