-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitlab-ci.yml
58 lines (51 loc) · 1.08 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
image: rust
stages:
- pages
- test
- build
cache:
paths:
- target/release
before_script:
- cargo build --release
- export PATH=${PWD}/target/release:${PATH}
tests:
stage: test
image: rust
script:
- garden -vv test
checks:
stage: test
image: rust
script:
- rustup component add clippy
- rustup component add rustfmt
- garden -vv check/clippy
- garden -vv check/fmt
build:amd64:
stage: build
image: rust
script:
- echo using pre-generated target/release/garden
- cp -p target/release/garden garden
- garden --version
artifacts:
paths:
- garden
pages:
stage: pages
image: rust
script:
- apt-get update
- apt-get install -y curl rsync
- curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=target/release
- garden -vv doc
- mv target/doc doc/book/doc
- mv doc/book public
- echo "Read the generated documenation at $CI_PAGES_URL"
artifacts:
paths:
- public
only:
- dev
- main