.travis.yml 684 B

1234567891011121314151617181920
  1. language: c++
  2. cache: ccache
  3. sudo: enabled
  4. os:
  5. - linux
  6. - osx
  7. dist: bionic
  8. osx_image: xcode10
  9. before_script:
  10. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; sudo apt-get install -y cppcheck cmake extra-cmake-modules libkf5globalaccel-dev libkf5notifications-dev libkf5windowsystem-dev libx11-dev qt5-qmake qtbase5-dev qtbase5-private-dev qttools5-dev-tools libglib2.0-dev zlib1g-dev qt5-default; fi
  11. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cppcheck qt5 glib; brew link --force qt5; fi
  12. script:
  13. - cppcheck -j1 --quiet -f --error-exitcode=2 -iplugins/stardict -iqxt .
  14. - qmake
  15. - make -j$(nproc || sysctl -n hw.ncpu)
  16. - sudo make install