.travis.yml 1.36 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
language: cpp

matrix:
  include:
  - os: linux
    sudo: false
    addons:
      apt:
        sources:
        - sourceline: ppa:teward/swig3.0
        - sourceline: ppa:george-edison55/precise-backports
        - sourceline: ppa:ubuntu-toolchain-r/test
        - llvm-toolchain-precise-3.6
        packages:
        - swig3.0
        - cmake
        - cmake-data
        - clang-3.6
        - gnupg2
20
21
        - libhdf5-dev
        - libtiff5
22
  - os: osx
Krzysztof Gonciarz's avatar
Krzysztof Gonciarz committed
23
    osx_image: xcode9.2
24
25
26
27

install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink gnupg; fi
28
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install swig gnupg2 hdf5; fi
29
30
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then /usr/libexec/java_home -V; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "UPDATESTARTUPTTY" | gpg-connect-agent > /dev/null 2>&1; fi
31
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cmake || brew upgrade cmake ; fi
32
33
34
35
36
37
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then alias swig="swig3.0"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export COMPILER=clang++-3.6; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=clang++-3.6; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CC=clang-3.6; fi
- git submodule init
- git submodule update
Krzysztof Gonciarz's avatar
Krzysztof Gonciarz committed
38
39
- pip install --user -U pip
- pip install --user numpy
Krzysztof Gonciarz's avatar
Krzysztof Gonciarz committed
40

41
42
script:
- sh ./cmake-build.sh