forked from osmcode/libosmium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (34 loc) · 898 Bytes
/
.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
language: cpp
compiler:
- gcc
- clang
before_install:
# we need at least g++-4.8 for c++11 features
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -y
install:
# upgrade compilers
- sudo apt-get install -y gcc-4.8 g++-4.8
# upgrade libosmium dependencies
- sudo apt-get install -y make libboost-dev libboost-program-options-dev zlib1g-dev libbz2-dev libexpat1-dev libsparsehash-dev libprotobuf-dev protobuf-compiler libosmpbf-dev libgdal1-dev libgeos++-dev libproj-dev
- git clone https://github.com/scrosby/OSM-binary.git
- cd OSM-binary/src
- make
- sudo make install
- cd ../..
#env:
before_script:
- true
script:
- if [ "${CXX}" = 'g++' ]; then export CXX=g++-4.8; fi;
- make test
- cd examples
- make
#notifications:
# irc:
# channels:
# - ""
# use_notice: true
# email:
# on_success: [never]
# on_failure: [change]