-
Notifications
You must be signed in to change notification settings - Fork 54
/
.travis.yml
45 lines (37 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Ubuntu 14.04 Trusty support
# dist: trusty
sudo: required
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
matrix:
exclude:
- os: osx
compiler: gcc
# update cmake - mainly for FindLua
# before_install:
# - mkdir $HOME/usr
# - export PATH="$HOME/usr/bin:$PATH"
# - wget https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.sh
# - chmod +x cmake-3.8.2-Linux-x86_64.sh
# - ./cmake-3.8.2-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [ "$CXX" = "clang++" ] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- gcc-4.9
- g++-4.9
- clang-3.6
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq libxml2-dev libcurl4-openssl-dev; fi
script: mkdir build && cd build && cmake .. && make