-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
54 lines (53 loc) · 1.86 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
language: cpp
sudo: required
dist: trusty
compiler: g++-5
matrix:
include:
- os: osx
sudo: required
compiler: clang
script:
- git submodule update --init --recursive
- brew update
- brew upgrade cmake
- wget http://download.qt.io/official_releases/qt/5.9/5.9.0/qt-opensource-mac-x64-5.9.0.dmg
- sudo hdiutil attach -noverify ./qt-opensource-mac-x64-5.9.0.dmg
- /Volumes/qt-opensource-mac-x64-5.9.0/qt-opensource-mac-x64-5.9.0.app/Contents/MacOS/qt-opensource-mac-x64-5.9.0 --platform minimal --script qt_script_osx.qs
- mkdir build
- cd build
- cmake .. -DCMAKE_PREFIX_PATH=~/Qt5.9.0/5.9/clang_64/lib/cmake
- make all
- os: linux
group: deprecated-2017Q4
script:
- git submodule update --init --recursive
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
- sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-5 /usr/bin/g++
- wget http://download.qt.io/official_releases/qt/5.9/5.9.0/qt-opensource-linux-x64-5.9.0.run
- chmod +x qt-opensource-linux-x64-5.9.0.run
- ./qt-opensource-linux-x64-5.9.0.run --platform minimal --script qt_script.qs
- mkdir build
- cd build
- cmake .. -DCMAKE_PREFIX_PATH=~/Qt5.9.0/5.9/gcc_64/lib/cmake
- make all
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- build-essential
- gcc-5
- g++-5
- xorg-dev
- cmake
- cmake-data
- libblas-dev
- liblapack-dev
- mesa-common-dev
- libglu1-mesa-dev -y
- libfontconfig1
- libeigen3-dev
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"