-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
54 lines (53 loc) · 1.75 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
language: rust
rust:
- 1.42.0
jobs:
include:
- name: server
before_install:
- cd $TRAVIS_JOB_NAME
install:
- rustup set profile minimal
- rustup toolchain install nightly-2020-02-23
- rustup component add rustfmt-preview --toolchain nightly-2020-02-23
- rustup component add clippy-preview --toolchain nightly-2020-02-23
before_script:
- cargo fetch --verbose
script:
- cargo +nightly-2020-02-23 fmt -- --check
&& RUST_BACKTRACE=1 cargo test --verbose --all
&& cargo +nightly-2020-02-23 clippy --all --all-targets -- -D warnings
- name: client
before_install:
- cd $TRAVIS_JOB_NAME
install:
- rustup set profile minimal
- rustup toolchain install nightly-2020-02-23
- rustup component add rustfmt-preview --toolchain nightly-2020-02-23
- rustup component add clippy-preview --toolchain nightly-2020-02-23
before_script:
- cargo fetch --verbose
script:
- cargo +nightly-2020-02-23 fmt -- --check
&& RUST_BACKTRACE=1 cargo test --verbose --all
&& cargo +nightly-2020-02-23 clippy --all --all-targets -- -D warnings
- name: ui
before_install:
- cd $TRAVIS_JOB_NAME
- nvm install 10
- nvm use 10
- npm install -g yarn
install:
- yarn install
script:
- yarn lint
- yarn build
cache:
cargo: true
directories:
- "$HOME/.rustup"
before_cache:
- rm -rf $HOME/.cargo/registry
- rm -rf $TRAVIS_BUILD_DIR/target
git:
depth: 1