blob: 3a2297d927f2b73cbc76a9d7923221321ee7c854 (
plain)
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
|
.cargo_test_template: &cargo_test
stage: test
script:
- cargo test --verbose --jobs 1
stages:
- test
- deploy
stable:cargo:
image: rustdocker/rust:stable
<<: *cargo_test
beta:cargo:
image: rustdocker/rust:beta
<<: *cargo_test
nightly:cargo:
image: rustdocker/rust:nightly
<<: *cargo_test
.pages:
image: rustdocker/rust:stable
stage: deploy
only:
- master
script:
- cargo doc
- rm -rf public
- mkdir public
- cp -R target/doc/* public
artifacts:
paths:
- public
|