diff --git a/src/gitlab-ci.yml b/src/gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..6ea268481c2cf6246b0c618ffdb6668bfe27b8d2 --- /dev/null +++ b/src/gitlab-ci.yml @@ -0,0 +1,25 @@ +image: 'rust:latest' + +stages: + - test + - build + +variables: + CARGO_HOME: $CI_PROJECT_DIR/cargo + +test: + stage: test + script: + - rustc --version + - cargo --version + - cargo test --verbose + +build: + stage: build + script: + - cargo build --all --verbose + +cache: + paths: + - cargo/ + - target/