This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (74 loc) · 1.93 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Copyright(c) 2018 Asit Dhal.
# Distributed under the MIT License (http://opensource.org/licenses/MIT)
language: cpp
sudo: required
dist: trusty
#compiler:
# - gcc
# - clang
configuration:
- Release
- Debug
environment:
matrix:
- CMAKE_BUILD_SYS: true
- QMAKE_BUILD_SYS: true
matrix:
include:
- os: osx
osx_image: xcode9
compiler: clang
- os: linux
compiler: gcc
env:
- CXX_COMPILER=g++-7
- C_COMPILER=gcc-7
addons:
apt:
sources: ["ubuntu-toolchain-r-test"]
packages: ["g++-7", "ninja-build"]
- os: linux
compiler: clang
env:
- CXX_COMPILER=clang++-5.0
- C_COMPILER=clang-5.0
addons:
apt:
sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-5.0"]
packages: ["clang-5.0", "g++-7", "ninja-build"]
before_install:
- export CXX=${CXX_COMPILER}
- export CC=${C_COMPILER}
before_install:
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y;
fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get update -qq;
else
brew update;
brew cleanup;
fi
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get install -qq qt510base qt510charts-no-lgpl; source /opt/qt510/bin/qt510-env.sh;
else
brew install qt5;
brew link --force qt5;
export HOMEBREW_QT5_VERSION=$(brew list --versions qt5 | rev | cut -d' ' -f1 | rev);
sudo ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/mkspecs /usr/local/mkspecs;
echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile;
fi
script:
- mkdir ./build && cd ./build
- if [ "$CMAKE_BUILD_SYS" = "true" ]; then
cmake --version;
cmake -DCMAKE_BUILD_TYPE=$configuration ..;
make -j2;
else
qmake -v;
qmake ../BenchmarkViewer.pro CONFIG+=$configuration;
make -j2 ;
fi
notifications:
email: false