forked from paperclip-rs/paperclip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (46 loc) · 1.26 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
language: rust
rust: stable
node_js: "12"
install: "npm install -g gitbook-cli"
# jobs are sorted by duration to optimize time to completion
matrix:
include:
- name: test
script:
- cargo test --all --features "actix cli chrono uuid"
- cd tests/test_k8s && cargo check
- cd ../test_pet && cargo check
- cd cli && CARGO_TARGET_DIR=../target cargo check
- cd ../../test_k8s/cli && CARGO_TARGET_DIR=../target cargo check
- name: test-nightly
before_script:
- rustup toolchain install nightly
- rustup default nightly
script:
- cargo test --all --features "actix-nightly cli chrono uuid"
- name: build
script:
- cargo build
- cargo build --features actix
- cargo build --features cli
- name: docs
script:
- rm -rf target/doc
- cargo doc --all --features "actix cli chrono uuid" --no-deps
- gitbook build book/
- cp -r book/_book/* target/doc/
- name: check
before_script:
- rustup component add rustfmt clippy
script:
- cargo fmt --all -- --check
- cargo clippy --all -- -D clippy::all
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master
condition: "$TRAVIS_JOB_NAME = docs"
local_dir: target/doc
fqdn: paperclip.waffles.space