forked from georust/geo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (35 loc) · 1.23 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
language: rust
cache: cargo
addons:
apt:
packages:
- libssl-dev
matrix:
include:
- env: GEO_TYPES_FEATURES=""
- env: GEO_TYPES_FEATURES="--features serde"
- env: GEO_TYPES_FEATURES="--features rstar"
- env: GEO_FEATURES=""
- env: GEO_FEATURES="--features postgis-integration"
- env: GEO_FEATURES="--features use-proj"
- env: GEO_FEATURES="--features use-serde"
before_cache:
- if [[ "${TRAVIS_RUST_VERSION}" == stable ]]; then
cargo install cargo-tarpaulin -f;
fi
before_install:
- if [ "${GEO_FEATURES}" == "--features use-proj" ]; then
sudo apt-get update;
wget https://github.com/OSGeo/PROJ/releases/download/7.0.0/proj-7.0.0.tar.gz;
tar -xzvf proj-7.0.0.tar.gz;
pushd proj-7.0.0 && ./configure --prefix=/usr && make && sudo make install && popd;
fi
script:
- (cd geo-types && cargo build --release $GEO_TYPES_FEATURES && cargo test --release $GEO_TYPES_FEATURES)
- (cd geo && cargo build --release $GEO_FEATURES && cargo test --release $GEO_FEATURES)
after_success:
- if [[ "${TRAVIS_RUST_VERSION}" == stable ]]; then
if [[ "${GEO_FEATURES}" == "" ]]; then
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID;
fi
fi