0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 16:11:02 +08:00
easy_profiler/.travis.yml

77 lines
2.0 KiB
YAML
Raw Normal View History

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);
ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/mkspecs /usr/local/mkspecs;
ln -s /usr/local/Cellar/qt5/$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;
echo "/usr/local/Cellar/qt5/";
ls -l /usr/local/Cellar/qt5/;
2017-06-18 23:46:01 +03:00
fi
2016-06-29 07:10:23 +04:00