-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
44 lines (39 loc) · 903 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
image: "zivgitlab.wwu.io/m_wiga01/rust-docker-tools/rust-docker-tools:latest"
stages:
- test
- build
- documentation
- deploy-docs
cache:
paths:
- target/
test:
stage: test
script:
- rustc --version && cargo --version
- cargo-deny check licenses
- cargo-deny check advisories
- cargo clippy
- cargo test --workspace --verbose
build:
only:
- main
stage: build
script:
- cargo build --target wasm32-wasi --release
artifacts:
paths:
- target/wasm32-wasi/release/wasm_oidc_plugin.wasm
expire_in: 1 week
pages:
cache: {}
stage: deploy-docs
script:
- cargo doc --document-private-items --no-deps
- echo "<meta http-equiv=refresh content=0;url=wasm_oidc_plugin/index.html>" > target/doc/index.html
- mv target/doc public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH