diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..436ada5 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 +