-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.travis.yml
More file actions
63 lines (54 loc) · 1.37 KB
/
.travis.yml
File metadata and controls
63 lines (54 loc) · 1.37 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
dist: trusty
language: rust
services: docker
sudo: required
addons:
postgresql: "9.5"
matrix:
include:
# Rust stable
- rust: stable
env:
- TARGET=x86_64-unknown-linux-gnu
- PG_USER=postgres
- TEST_POSTGRES_URL="postgres://$PG_USER@localhost:5432/indradb_test"
- os: osx
rust: stable
env:
- TARGET=x86_64-apple-darwin
- PG_USER=travis
- TEST_POSTGRES_URL="postgres://$PG_USER@localhost:5432/indradb_test"
# Rust beta
- rust: beta
env:
- TARGET=x86_64-unknown-linux-gnu
- PG_USER=postgres
- TEST_POSTGRES_URL="postgres://$PG_USER@localhost:5432/indradb_test"
# Rust nightly
- rust: nightly
env:
- TARGET=x86_64-unknown-linux-gnu
- PG_USER=postgres
- TEST_POSTGRES_URL="postgres://$PG_USER@localhost:5432/indradb_test"
allow_failures:
# Rust nightly
- rust: nightly
env:
- TARGET=x86_64-unknown-linux-gnu
- PG_USER=postgres
- TEST_POSTGRES_URL="postgres://$PG_USER@localhost:5432/indradb_test"
env:
global:
- RUST_BACKTRACE=1
before_script: ./ci/before_script.sh
script: cargo test --features=test-suite
cache:
directories:
- $HOME/.cargo
- $TRAVIS_BUILD_DIR/target
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
notifications:
email:
on_success: never