You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
2.2 KiB

  1. dist: bionic
  2. sudo: required
  3. language: c
  4. env:
  5. - CC="gcc" CXX="g++" BUILDTOOL="cmake" BUILDARGS=""
  6. - CC="gcc" CXX="g++" BUILDTOOL="cmake" BUILDARGS="-DENABLE_PYTHON2=ON"
  7. # - CC="gcc" CXX="g++" BUILDTOOL="cmake" BUILDARGS="-DENABLE_CODE_COVERAGE=ON" CODECOVERAGE="1"
  8. - CC="gcc" CXX="g++" BUILDTOOL="autotools" BUILDARGS=""
  9. - CC="gcc" CXX="g++" BUILDTOOL="autotools" BUILDARGS="--enable-python2"
  10. - CC="clang" CXX="clang++" BUILDTOOL="cmake" BUILDARGS=""
  11. - CC="clang" CXX="clang++" BUILDTOOL="cmake" BUILDARGS="-DENABLE_PYTHON2=ON"
  12. - CC="clang" CXX="clang++" BUILDTOOL="autotools" BUILDARGS=""
  13. - CC="clang" CXX="clang++" BUILDTOOL="autotools" BUILDARGS="--enable-python2"
  14. matrix:
  15. fast_finish: true
  16. before_script:
  17. - echo 'APT::Install-Recommends "false";' | sudo tee -a /etc/apt/apt.conf
  18. - travis_retry sudo apt-get update -qq
  19. - travis_retry sudo apt-get -y install devscripts equivs python-pip libenchant-dev autopoint cmake lcov pkg-config libncursesw5-dev gem2deb libperl-dev python-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-2.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev zlib1g-dev curl libcpputest-dev php7.2-dev libphp7.2-embed libargon2-0-dev libsodium-dev pylint3
  20. - travis_retry sudo gem install asciidoctor
  21. - travis_retry sudo -H pip install --ignore-installed msgcheck
  22. - phpenv local system
  23. # work around broken travis environment variables, see https://github.com/travis-ci/travis-ci/issues/5301
  24. - unset PYTHON_CFLAGS
  25. script:
  26. - ./tools/build-test.sh
  27. - msgcheck po/*.po
  28. - pylint3 --version
  29. - pylint3 --additional-builtins=_ doc/docgen.py
  30. - pylint3 tests/scripts/python/testapigen.py
  31. - pylint3 tests/scripts/python/testapi.py
  32. - pylint3 tests/scripts/python/unparse.py
  33. - ./tools/build-debian.sh test-patches
  34. after_success:
  35. - weechat --help
  36. - weechat-curses --help
  37. - weechat --colors
  38. - weechat --license
  39. - weechat --version
  40. - weechat --temp-dir --run-command "/debug dirs;/debug libs" --run-command "/quit"
  41. # - if [ "$CODECOVERAGE" = "1" ]; then bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov error"; fi