0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 08:01:51 +08:00
easy_profiler/.travis.yml
2021-06-06 00:04:52 +03:00

49 lines
1.1 KiB
YAML

sudo: required
dist: xenial
language: cpp
cache: ccache
matrix:
include:
- compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- cmake
- cmake-data
- qt5-default
env:
-CXX_COMPILER=g++-5
-C_COMPILER=gcc-5
- os: osx
osx_image: xcode11.4
env:
-CXX_COMPILER=g++-5
-C_COMPILER=gcc-5
script:
- mkdir build
- cd build
- cmake --version
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
qmake -v;
else
export PATH=/usr/local/opt/qt/bin:$PATH;
fi
- cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER .. && make -j3
after_success:
- cd ../sample && $CXX_COMPILER -std=c++11 -O3 main_clock.cpp -o test_clock && ./test_clock
- ./build_express_test.sh
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update;
fi
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew install gcc5;
brew install qt;
brew link --force qt;
fi