-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
94 lines (83 loc) · 1.72 KB
/
.gitlab-ci.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
stages:
- build
- test
- deploy
.rust: &rust
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
cache:
paths:
- cargo/
- target/
before_script:
- cargo --version
- rustc --version
.rust-stable: &rust-stable
<<: *rust
image: rust
cache:
key: stable
.rust-nightly: &rust-nightly
<<: *rust
image: rustlang/rust:nightly
cache:
key: nightly
rust-stable-build:
<<: *rust-stable
stage: build
script:
- cargo build
- cargo build --no-default-features --features "blocking"
- cargo build --release
- cargo build --release --no-default-features --features "blocking"
rust-stable-documentation:
<<: *rust-stable
stage: build
script:
- cargo rustdoc
artifacts:
paths:
- target/doc
rust-nightly-build:
<<: *rust-nightly
stage: build
script:
- cargo build
- cargo build --release
- cargo build --no-default-features --features "blocking"
- cargo build --release --no-default-features --features "blocking"
rust-stable-test:
<<: *rust-stable
stage: test
script:
- cargo test
- cargo test --no-default-features --features "blocking"
rust-nightly-test:
<<: *rust-nightly
stage: test
script:
- cargo test
- cargo test --release --no-default-features --features "blocking"
coverage-nightly:
image: xd009642/tarpaulin:develop-nightly
stage: test
before_script:
- apt-get update
- apt-get install -y pkg-config libssl-dev
script:
- cargo tarpaulin -v
pages:
image: debian
stage: deploy
dependencies:
- rust-stable-documentation
only:
- master
script:
- echo "Copying files!"
- mkdir -p public
- cp --recursive target/doc/* public/
artifacts:
paths:
- public