-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
49 lines (43 loc) · 859 Bytes
/
.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
image: 'rustlang/rust:nightly'
stages:
- test
- doc
- build
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
test:
stage: test
before_script:
- cargo install cargo-web || echo "cargo web might be already installed"
script:
- make client
- rustc --version
- cargo --version
- cargo test --verbose
pages:
stage: doc
script:
- cargo doc --no-deps
- mv target/doc public
- echo '<meta http-equiv="refresh" content="0; url=plotit">' > public/index.html
artifacts:
paths:
- public
only:
- master
build:
stage: build
before_script:
- cargo install cargo-web || echo "cargo web might be already installed"
script:
- make build
- mv target/release/plotit .
- mv target/release/noise .
artifacts:
paths:
- plotit
- noise
cache:
paths:
- cargo/
- target/