2018-12-16 22:14:10 +01:00
|
|
|
language: c++
|
2018-12-17 18:31:26 +01:00
|
|
|
dist: xenial
|
2018-12-16 22:14:10 +01:00
|
|
|
|
|
|
|
os:
|
2018-12-17 18:31:26 +01:00
|
|
|
- linux
|
2018-12-16 22:14:10 +01:00
|
|
|
- osx
|
|
|
|
|
2018-12-16 22:22:25 +01:00
|
|
|
env:
|
|
|
|
- QT_SELECT=qt5
|
|
|
|
|
2018-12-16 22:14:10 +01:00
|
|
|
before_install:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
|
|
|
|
|
|
|
|
install:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt protobuf; fi
|
2018-12-16 22:22:25 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qtbase5-dev qtbase5-dev-tools qt5-qmake libprotobuf-dev protobuf-compiler; fi
|
2018-12-16 22:14:10 +01:00
|
|
|
|
|
|
|
script:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH=/usr/local/opt/qt/bin/:${PATH}; fi
|
2018-12-17 17:31:33 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then qmake PROTOBUF=/usr/local pbfplugin.pro; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then qmake pbfplugin.pro; fi
|
2018-12-16 22:14:10 +01:00
|
|
|
- make
|