-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.gitlab-ci.yml
60 lines (53 loc) · 1.15 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
image: rust
stages:
- pages
- test
- build
cache:
paths:
- target/release
before_script:
- cargo build --release --workspace
- export PATH=${PWD}/target/release:${PATH}
tests:
stage: test
image: rust
script:
- garden test -vv
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
- cp -p target/release/garden-gui garden-gui
- garden --version
artifacts:
paths:
- garden
- garden-gui
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.44/mdbook-v0.4.44-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=target/release
- garden doc -vv
- 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