Implement GitLab CI
This commit is contained in:
parent
29a248c00c
commit
3d18134278
1 changed files with 37 additions and 0 deletions
37
.gitlab-ci.yml
Normal file
37
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
image: "rust:slim"
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- release
|
||||
|
||||
cargo-build:
|
||||
stage: build
|
||||
script:
|
||||
- cargo build
|
||||
|
||||
cargo-test:
|
||||
stage: test
|
||||
script:
|
||||
- rustc --version && cargo --version
|
||||
- cargo test --workspace --verbose
|
||||
|
||||
clippy-lint:
|
||||
stage: test
|
||||
before_script:
|
||||
- rustup component add clippy
|
||||
script:
|
||||
- cargo clippy
|
||||
|
||||
build-release:
|
||||
stage: release
|
||||
script:
|
||||
- cargo build --release
|
||||
artifacts:
|
||||
paths:
|
||||
- target/release/slop-incoming
|
||||
- target/release/slop-outgoing
|
||||
- target/release/slop-well-known
|
||||
- target/release/slop-mastodon-api
|
||||
expire_in: 1 week
|
||||
|
Loading…
Add table
Reference in a new issue