-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
50 lines (44 loc) · 1.3 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
46
47
48
49
50
language: generic
sudo: false
addons:
postgresql: "9.4"
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
packages:
- clang-3.5
cache:
directories:
- $HOME/.ccache
matrix:
include:
- os: linux
compiler: clang35-release
env: CONFIGURATION=Release CXX="ccache clang++-3.5 -Qunused-arguments"
- os: linux
compiler: clang35-debug
env: CONFIGURATION=Debug CXX="ccache clang++-3.5 -Qunused-arguments"
- os: osx
# https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions
osx_image: xcode7.3 # upgrades clang from 6 -> 7
compiler: clang
env: CONFIGURATION=Release
- os: osx
# https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions
osx_image: xcode7.3 # upgrades clang from 6 -> 7
compiler: clang
env: CONFIGURATION=Debug
install:
# TODO - get postgis working
- cd ..
- git init .
- git remote add origin http://github.com/mapnik/mapnik
- git fetch
- git checkout master
- git submodule update --init
- cd mapnik-gyp
script:
- COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
- if [[ ${COMMIT_MESSAGE} =~ "[build]" ]]; then ./build.sh; fi;
- if [[ ${COMMIT_MESSAGE} =~ "[build]" ]]; then ./test.sh; fi;