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

42 lines
1003 B
YAML
Raw Normal View History

2021-06-05 23:48:46 +03:00
dist: xenial
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
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
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
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