Update .gitlab-ci.yml file

This commit is contained in:
George Kaklamanos 2022-10-22 20:17:34 +00:00
parent f79a5cfd65
commit da2a73438a

View file

@ -11,17 +11,18 @@
# https://hub.docker.com/r/library/rust/tags/ # https://hub.docker.com/r/library/rust/tags/
image: "rust:latest" image: "rust:latest"
# Optional: Pick zero or more services to be used on all builds. release_job:
# Only needed when using a docker container to run your tests in. stage: build
# Check out: https://docs.gitlab.com/ee/ci/services/index.html image: "rust:latest"
# services: rules:
# - mysql:latest - if: $CI_COMMIT_TAG
# - redis:latest when: never # Do not run this job when a tag is created manually
# - postgres:latest - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
# Use cargo to test the project
test:cargo:
script: script:
- rustc --version && cargo --version # Print version info for debugging - echo "running release_job for $TAG"
- cargo test --workspace --verbose - cargo build --release
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline.
description: 'v0.$CI_PIPELINE_IID'
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.