-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
111 lines (110 loc) · 4.11 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
language: rust
sudo: required
dist: bionic
addons:
apt:
packages:
- libssl-dev
cache: cargo
services:
- docker
jobs:
fast_finish: true
include:
- name: Coverage
rust: stable
before_install:
- docker-compose -f docker-compose-20-03-acl.yaml up -d
- docker ps
before_script:
- cargo install cargo-tarpaulin
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
script:
- cargo build
- cargo test --features acl --features sync --features experimental --verbose -- --test-threads=1
after_success:
- cargo tarpaulin -v --features acl sync --exclude-files src/api/* --ciserver travis-ci --coveralls $TRAVIS_JOB_ID -- --test-threads=1
- name: Check simple example
rust: stable
script:
- cd examples/simple
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo check
- name: Check tls example
rust: stable
script:
- cd examples/tls
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo check
- name: Check my txn example
rust: stable
script:
- cd examples/my_txn
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo check
- name: Dgraph 1.0 tests
rust: stable
before_install:
- docker-compose -f docker-compose-1-0.yaml up -d
- docker ps
script:
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo test --no-default-features --features dgraph-1-0 --features sync --verbose -- --test-threads=1
- name: Dgraph 1.1 tests
rust: stable
before_install:
- docker-compose -f docker-compose-1-1.yaml up -d
- docker ps
script:
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo test --no-default-features --features dgraph-1-1 --features sync --verbose -- --test-threads=1
- name: Dgraph 1.2 tests
rust: stable
before_install:
- docker-compose -f docker-compose-1-2.yaml up -d
- docker ps
script:
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo test --no-default-features --features dgraph-1-1 --features sync --verbose -- --test-threads=1
- name: Dgraph 20.03 tests
rust: stable
before_install:
- docker-compose -f docker-compose-20-03.yaml up -d
- docker ps
script:
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo test --no-default-features --features dgraph-1-1 --features sync --verbose -- --test-threads=1
- name: Dgraph 20.03 ACL tests
rust: stable
before_install:
- docker-compose -f docker-compose-20-03-acl.yaml up -d
- docker ps
script:
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo test --no-default-features --features dgraph-1-1 --features acl --features sync --verbose -- --test-threads=1
- name: Dgraph 20.03 experimental tests
rust: stable
before_install:
- docker-compose -f docker-compose-20-03-acl.yaml up -d
- docker ps
script:
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo test --no-default-features --features dgraph-1-1 --features acl --features sync --features experimental --verbose -- --test-threads=1
- name: Dgraph 21.03 tests
rust: stable
before_install:
- docker-compose -f docker-compose-21-03.yaml up -d
- docker ps
script:
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo test --features sync --verbose -- --test-threads=1