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
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
-CXX_COMPILER=clang++
|
|
|
|
-C_COMPILER=clang
|
2016-10-21 23:45:37 +03:00
|
|
|
# - compiler: clang
|
|
|
|
# addons:
|
|
|
|
# apt:
|
|
|
|
# sources:
|
|
|
|
# - ubuntu-toolchain-r-test
|
|
|
|
# - llvm-toolchain-precise-3.7
|
|
|
|
# packages:
|
|
|
|
# - clang-3.7
|
|
|
|
# env:
|
|
|
|
# -CXX_COMPILER=clang++-3.7
|
|
|
|
# -C_COMPILER=clang-3.7
|
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:00:51 +03:00
|
|
|
brew install qt5;
|
|
|
|
brew link --force qt5;
|
|
|
|
export HOMEBREW_QT5_VERSION=$(brew list --versions qt5 | rev | cut -d' ' -f1 | rev);
|
2017-06-19 00:19:45 +03:00
|
|
|
ln -s /usr/local/Cellar/qt/$HOMEBREW_QT5_VERSION/mkspecs /usr/local/mkspecs;
|
|
|
|
ln -s /usr/local/Cellar/qt/$HOMEBREW_QT5_VERSION/plugins /usr/local/plugins;
|
2017-06-19 00:14:35 +03:00
|
|
|
echo "ls -l /usr/local/mkspecs";
|
|
|
|
ls -l /usr/local/mkspecs;
|
|
|
|
echo "ls -l /usr/local/plugins";
|
|
|
|
ls -l /usr/local/plugins;
|
2017-06-19 00:19:45 +03:00
|
|
|
echo "/usr/local/Cellar/qt/";
|
|
|
|
ls -l /usr/local/Cellar/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
|
|
|
|