forked from mikrosimage/duke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (23 loc) · 1.07 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
language: cpp
compiler:
- clang
- gcc
before_install:
# Add g++ 4.8 repository since Travis provides g++ 4.6 by default
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
# If compiling with clang also fetch clang repository
- sudo add-apt-repository -y ppa:h-rayflood/llvm
# Update database
- sudo apt-get update
# Note: Install g++ 4.8 since Travis provides g++ 4.6 by default
# Note: libopenimageio-dev is not available on Ubuntu 12.04 precise and will be compiled from source
# Note: oiio does not compile with boost-1.46.1 so compiling boost from source.
- sudo apt-get install --allow-unauthenticated -y cmake curl tar unzip g++-4.8 clang-3.4 xorg-dev libglu1-mesa-dev yasm libbz2-dev libjpeg-dev libtiff-dev libpng-dev libwebp-dev
# Set up compiler
- if [ "$CXX" == "clang++" ]; then export CC="clang-3.4"; export CXX="clang++-3.4"; else export CC="gcc-4.8"; export CXX="g++-4.8"; fi
- export CPU=2
script:
# Output compiler version
- $CXX --version
# Setting up third party libraries (oiio, libav) and compiling Duke
- make package -j$CPU