forked from RoboCup-SSL/grSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·53 lines (47 loc) · 1.46 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
language: cpp
compiler:
- gcc
# by default Ubuntu Precise is included
# this results on 3 build configurations:
# Ubuntu Precise and Trusty + Latest OSX image
matrix:
include:
- os: linux
dist: trusty
sudo: required
- os: osx
osx_image: xcode8
addons:
apt:
packages:
- cmake
- libqt4-dev
- libgl1-mesa-dev
- libglu1-mesa-dev
- libprotobuf-dev
- protobuf-compiler
- libode-dev
- libboost-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update > /dev/null ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap cartr/qt4 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap-pin cartr/qt4 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt@4 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install protobuf ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ode --with-double-precision ; fi
install:
# vartypes
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/szi/vartypes.git ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then git clone https://github.com/lordhippo/vartypes.git -b osx-fix; fi
- cd vartypes
- mkdir build && cd build
- cmake ..
- make
- sudo make install
script:
# grsim
- cd $TRAVIS_BUILD_DIR
- mkdir build && cd build
- cmake ..
- make
- sudo make install