2021-06-05 23:48:46 +03:00
|
|
|
dist: xenial
|
2016-08-21 12:34:06 +03:00
|
|
|
cache: ccache
|
2021-06-09 16:16:22 +03:00
|
|
|
language: cpp
|
2021-06-09 16:11:31 +03:00
|
|
|
jobs:
|
2016-10-21 23:15:46 +03:00
|
|
|
include:
|
|
|
|
- compiler: gcc
|
2017-06-18 23:46:01 +03:00
|
|
|
os: linux
|
2016-10-21 23:15:46 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-5
|
2017-06-18 23:46:01 +03:00
|
|
|
- cmake
|
|
|
|
- cmake-data
|
2021-06-05 23:52:23 +03:00
|
|
|
- qt5-default
|
2016-10-21 23:33:24 +03:00
|
|
|
env:
|
|
|
|
-CXX_COMPILER=g++-5
|
|
|
|
-C_COMPILER=gcc-5
|
2017-06-18 23:46:01 +03:00
|
|
|
- os: osx
|
2021-06-06 00:04:52 +03:00
|
|
|
osx_image: xcode11.4
|
2017-06-18 23:46:01 +03:00
|
|
|
env:
|
2017-06-19 00:46:48 +03:00
|
|
|
-CXX_COMPILER=g++-5
|
|
|
|
-C_COMPILER=gcc-5
|
2021-06-06 00:34:26 +03:00
|
|
|
-HOMEBREW_NO_AUTO_UPDATE=1
|
2016-06-29 06:52:23 +04:00
|
|
|
script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2021-06-06 00:18:46 +03:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
2017-06-19 00:14:35 +03:00
|
|
|
export PATH=/usr/local/opt/qt/bin:$PATH;
|
2017-06-18 23:46:01 +03:00
|
|
|
fi
|
2016-10-21 23:33:31 +03:00
|
|
|
- cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER .. && make -j3
|
2016-08-21 12:16:56 +03:00
|
|
|
install:
|
2021-06-05 23:56:11 +03:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
2017-06-19 00:46:48 +03:00
|
|
|
brew install gcc5;
|
2019-10-21 14:58:08 +03:00
|
|
|
brew install qt;
|
|
|
|
brew link --force qt;
|
2017-06-18 23:46:01 +03:00
|
|
|
fi
|