ci: add pipeline for build and test
This commit is contained in:
parent
a29306ed42
commit
9cef9caad2
1 changed files with 16 additions and 0 deletions
16
.gitlab-ci.yml
Normal file
16
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
stages:
|
||||||
|
- primary
|
||||||
|
|
||||||
|
build-and-test:
|
||||||
|
stage: primary
|
||||||
|
image: rust:1.74.0
|
||||||
|
tags:
|
||||||
|
- shared-fi
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
script:
|
||||||
|
# build and test in single job for faster execution
|
||||||
|
# because shared runner doesn't allow caching
|
||||||
|
- cargo build --verbose
|
||||||
|
- cargo test --verbose
|
||||||
Loading…
Add table
Add a link
Reference in a new issue