-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
69 lines (61 loc) · 1.42 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
language: rust
cache: cargo
rust:
- stable
- beta
- nightly
- 1.29.0
install:
- rustup component add rustfmt-preview clippy-preview || true
matrix:
allow_failures:
- rust: nightly
fast_finish: true
# The test stage:
script:
- cargo build --verbose --all
- cargo test --verbose --all
jobs:
allow_failures:
- script: cargo coveralls
include:
- stage: format
rust: stable
script: cargo fmt --all -- --check && cargo clippy
- stage: deploy
rust: stable
# Unfortunately, due to kcov, ASLR, and Spectre/Meltdown
# precautions this is required.
sudo: required
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
before_script: |
export PATH=$HOME/.cargo/bin:$PATH;
cargo install cargo-update || true;
cargo install cargo-travis || true;
cargo install-update -a
script: cargo coveralls
- stage: deploy
rust: stable
script: cargo doc --all --release
deploy:
provider: pages
local-dir: target/doc/
project-name: mandelbrot
target-branch: gh-pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
stages:
- test
- format
- name: deploy
if: branch = master