-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (55 loc) · 1.36 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
language: cpp
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QT_BASE=59
# - os: linux
# dist: trusty
# sudo: required
# compiler: gcc
# env:
# - QT_BASE=59 USE_CMAKE=true
- os: osx
compiler: clang
env:
- QT_BASE=59
# - os: osx
# compiler: clang
# env:
# - QT_BASE=59 USE_CMAKE=true
before_install:
- if [[ "$QT_BASE" = "59" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt59-trusty -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get update -qq;
else
brew update;
fi
install:
- if [ "$QT_BASE" = "59" ]; then
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get install -qq qt59base; source /opt/qt59/bin/qt59-env.sh;
else
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;
fi
fi
script:
# build library and tests, install library
- mkdir ./build && cd ./build
- if [ "$USE_CMAKE" = "true" ]; then
cmake --version;
cmake -DCMAKE_BUILD_TYPE=Release ..;
make;
else
qmake -v;
qmake ../DisMo.pro CONFIG+=release;
make;
fi
notifications:
email: false