mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 00:31:02 +08:00
Try osx build on travis
This commit is contained in:
parent
f7b26ac3f4
commit
e09b42a91e
38
.travis.yml
38
.travis.yml
@ -5,15 +5,23 @@ cache: ccache
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
|
os: linux
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- g++-5
|
- g++-5
|
||||||
|
- cmake
|
||||||
|
- cmake-data
|
||||||
env:
|
env:
|
||||||
-CXX_COMPILER=g++-5
|
-CXX_COMPILER=g++-5
|
||||||
-C_COMPILER=gcc-5
|
-C_COMPILER=gcc-5
|
||||||
|
- os: osx
|
||||||
|
compiler: clang
|
||||||
|
env:
|
||||||
|
-CXX_COMPILER=clang++
|
||||||
|
-C_COMPILER=clang
|
||||||
# - compiler: clang
|
# - compiler: clang
|
||||||
# addons:
|
# addons:
|
||||||
# apt:
|
# apt:
|
||||||
@ -29,23 +37,29 @@ script:
|
|||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake --version
|
- cmake --version
|
||||||
- source /opt/qt55/bin/qt55-env.sh
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||||
- qmake -v
|
source /opt/qt55/bin/qt55-env.sh;
|
||||||
|
qmake -v;
|
||||||
|
fi
|
||||||
- cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER .. && make -j3
|
- cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER .. && make -j3
|
||||||
after_success:
|
after_success:
|
||||||
- cd ../sample && $CXX_COMPILER -std=c++11 -O3 main_clock.cpp -o test_clock && ./test_clock
|
- cd ../sample && $CXX_COMPILER -std=c++11 -O3 main_clock.cpp -o test_clock && ./test_clock
|
||||||
- ./build_express_test.sh
|
- ./build_express_test.sh
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository --yes ppa:beineri/opt-qt551-trusty
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||||
- sudo apt-get update -qq
|
sudo add-apt-repository --yes ppa:beineri/opt-qt551-trusty;
|
||||||
|
sudo apt-get update -qq;
|
||||||
|
else
|
||||||
|
brew update
|
||||||
|
fi
|
||||||
install:
|
install:
|
||||||
- sudo apt-get -y install qt55tools qt55script qt55base qt55svg
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||||
addons:
|
sudo apt-get -y install qt55tools qt55script qt55base qt55svg;
|
||||||
apt:
|
else
|
||||||
sources:
|
brew install qt55;
|
||||||
- ubuntu-toolchain-r-test
|
brew link --force qt55;
|
||||||
packages:
|
fi
|
||||||
- cmake
|
|
||||||
- cmake-data
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user