-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
36 lines (31 loc) · 895 Bytes
/
.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
language: cpp
os: linux
compiler: gcc
sudo: required
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- g++-4.8
- gcc-4.8
before_install:
- wget https://github.com/vicrucann/OpenSceneGraph/releases/download/OpenSceneGraph-3.4.0/osg-340-deb.tar.gz
- tar -zxvf osg-340-deb.tar.gz
install:
- export CXX="g++-4.8"
- export CC="gcc-4.8"
- export CXXFLAGS="-std=c++11"
- sudo cp -rv osg-340-deb/lib64 /usr/local/
- sudo cp -rv osg-340-deb/include /usr/local/
- sudo cp -rv osg-340-deb/bin /usr/local/
before_script:
- export LD_LIBRARY_PATH="/usr/local/lib64:/usr/local/lib:$LD_LIBRARY_PATH"
- export OPENTHREADS_INC_DIR="/usr/local/include"
- export OPENTHREADS_LIB_DIR="/usr/local/lib64:/usr/local/lib"
- export PATH="$OPENTHREADS_LIB_DIR:$PATH"
- cmake -DCMAKE_BUILD_TYPE=Release
script:
- make