summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: fe11a0b89278018ce71a68f5d64a2ed54d0b8c16 (plain)
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