-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
57 lines (56 loc) · 1.8 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
language: rust
services:
- docker
matrix:
allow_failures:
- rust: nightly
fast_finish: true
include:
- name: clippy & fmt
rust: stable
before_install:
- rustup component add rustfmt clippy
install:
- wget https://dl.google.com/go/go1.14.1.linux-amd64.tar.gz;
tar -xf go1.14.1.linux-amd64.tar.gz -C $HOME;
export PATH="$HOME/go/bin:$PATH";
export GOROOT=$HOME/go;
script:
- cargo clippy --all-features -- -D warnings
- cargo fmt -- --check
- name: Dgraph 1.1 tests
rust: stable
before_install:
- docker-compose -f docker-compose-1-1.yaml up -d
- docker ps
install:
- wget https://dl.google.com/go/go1.14.1.linux-amd64.tar.gz;
tar -xf go1.14.1.linux-amd64.tar.gz -C $HOME;
export PATH="$HOME/go/bin:$PATH";
export GOROOT=$HOME/go;
script:
- cargo test --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
install:
- wget https://dl.google.com/go/go1.14.1.linux-amd64.tar.gz;
tar -xf go1.14.1.linux-amd64.tar.gz -C $HOME;
export PATH="$HOME/go/bin:$PATH";
export GOROOT=$HOME/go;
script:
- cargo test --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
install:
- wget https://dl.google.com/go/go1.14.1.linux-amd64.tar.gz;
tar -xf go1.14.1.linux-amd64.tar.gz -C $HOME;
export PATH="$HOME/go/bin:$PATH";
export GOROOT=$HOME/go;
script:
- cargo test --verbose -- --test-threads=1