2016-06-29 07:01:34 +04:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2016-06-29 06:52:23 +04:00
|
|
|
language: cpp
|
2016-08-21 12:34:06 +03:00
|
|
|
cache: ccache
|
2016-10-21 23:15:46 +03:00
|
|
|
matrix:
|
|
|
|
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
|
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
|
2019-10-21 15:24:14 +03:00
|
|
|
osx_image: xcode10
|
2017-06-19 00:46:48 +03:00
|
|
|
#compiler: clang
|
2017-06-18 23:46:01 +03:00
|
|
|
env:
|
2017-06-19 00:46:48 +03:00
|
|
|
#-CXX_COMPILER=clang++
|
|
|
|
#-C_COMPILER=clang
|
|
|
|
-CXX_COMPILER=g++-5
|
|
|
|
-C_COMPILER=gcc-5
|
2016-06-29 06:52:23 +04:00
|
|
|
script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-06-29 06:55:12 +04:00
|
|
|
- cmake --version
|
2017-06-18 23:46:01 +03:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
source /opt/qt55/bin/qt55-env.sh;
|
|
|
|
qmake -v;
|
2017-06-19 00:14:35 +03:00
|
|
|
else
|
|
|
|
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
|
2017-05-05 19:56:48 +03:00
|
|
|
after_success:
|
2017-05-05 19:55:35 +03:00
|
|
|
- cd ../sample && $CXX_COMPILER -std=c++11 -O3 main_clock.cpp -o test_clock && ./test_clock
|
2017-05-05 20:38:58 +03:00
|
|
|
- ./build_express_test.sh
|
2016-08-21 12:16:56 +03:00
|
|
|
before_install:
|
2017-06-18 23:46:01 +03:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
sudo add-apt-repository --yes ppa:beineri/opt-qt551-trusty;
|
|
|
|
sudo apt-get update -qq;
|
|
|
|
else
|
2017-06-18 23:51:00 +03:00
|
|
|
brew update;
|
2017-06-18 23:46:01 +03:00
|
|
|
fi
|
2016-08-21 12:16:56 +03:00
|
|
|
install:
|
2017-06-18 23:46:01 +03:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
sudo apt-get -y install qt55tools qt55script qt55base qt55svg;
|
|
|
|
else
|
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
|
|
|
|
|
|
|
|
|
2016-06-29 07:25:23 +04:00
|
|
|
|
2016-06-29 07:10:23 +04:00
|
|
|
|