]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Improve highlighting of name refs
[rust.git] / .travis.yml
1 cache: cargo
2 before_cache:
3     - find ./target/debug -type f -maxdepth 1 -delete
4     - rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*tools*,*gen_lsp*,*thread_worker*}
5     - rm -f  ./target/.rustc_info.json
6
7 matrix:
8     include:
9         - os: linux
10           language: rust
11           rust: stable
12           script:
13               - rustup component add rustfmt
14               - rustup component add rust-src
15               - cargo test --no-run  # let's measure compile time separately
16               - cargo test
17           env:
18               - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
19
20         - os: linux
21           if: branch = master AND type = push
22           before_script:
23               - DEPLOY_DOCS=1
24           language: rust
25           rust: stable
26           script:
27               - cargo doc --all --no-deps
28           env:
29               - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
30
31         - language: node_js
32           node_js: node
33           before_script: false
34           script:
35               - cd editors/code && npm ci && npm run travis
36
37 branches:
38     only:
39         - staging
40         - master
41         - trying
42
43 deploy:
44     provider: pages
45     skip-cleanup: true
46     github-token: $DOCS_TOKEN  # Set in the settings page of your repository, as a secure variable
47     keep-history: true
48     local-dir: target/doc
49     branch: gh-pages
50     on:
51         branch: master
52         condition: $DEPLOY_DOCS = 1