pipeline update

This commit is contained in:
John Smith 2021-12-05 15:32:03 -05:00
parent 9cbf2c6913
commit 57e64413b5

View File

@ -13,14 +13,14 @@ clippy:
stage: clippy stage: clippy
image: ${BUILD_IMAGE_LINUX_AMD64} image: ${BUILD_IMAGE_LINUX_AMD64}
cache: cache:
key: $CI_COMMIT_REF_SLUG-linux-amd64-release key: $CI_COMMIT_REF_SLUG-linux-amd64
paths: paths:
- target/ - target/
tags: tags:
- linux - linux
- amd64 - amd64
script: script:
- cargo clippy --release - cargo clippy
# Only run clippy on non-protected branches, for development # Only run clippy on non-protected branches, for development
rules: rules:
- if: $CI_COMMIT_REF_PROTECTED == "false" - if: $CI_COMMIT_REF_PROTECTED == "false"
@ -34,18 +34,18 @@ clippy:
- if: $CI_COMMIT_REF_PROTECTED == "true" - if: $CI_COMMIT_REF_PROTECTED == "true"
- if: $CI_MERGE_REQUEST_IID - if: $CI_MERGE_REQUEST_IID
test_linux_amd64_release: test_linux_amd64:
stage: test stage: test
image: ${BUILD_IMAGE_LINUX_AMD64} image: ${BUILD_IMAGE_LINUX_AMD64}
cache: cache:
key: $CI_COMMIT_REF_SLUG-linux-amd64-release key: $CI_COMMIT_REF_SLUG-linux-amd64
paths: paths:
- target/ - target/
tags: tags:
- linux - linux
- amd64 - amd64
script: script:
- RUST_BACKTRACE=1 dbus-run-session -- cargo test --release -- --nocapture - RUST_BACKTRACE=1 dbus-run-session -- cargo test -- --nocapture
rules: rules:
- !reference [.test_rules_common, rules] - !reference [.test_rules_common, rules]
@ -57,11 +57,11 @@ test_linux_amd64_release:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
- if: $CI_COMMIT_REF_PROTECTED == "true" - if: $CI_COMMIT_REF_PROTECTED == "true"
build_linux_amd64_release: build_linux_amd64:
stage: build stage: build
image: ${BUILD_IMAGE_LINUX_AMD64} image: ${BUILD_IMAGE_LINUX_AMD64}
cache: cache:
key: $CI_COMMIT_REF_SLUG-linux-amd64-release key: $CI_COMMIT_REF_SLUG-linux-amd64
paths: paths:
- target/ - target/
tags: tags:
@ -70,7 +70,7 @@ build_linux_amd64_release:
script: script:
- cargo build --release - cargo build --release
artifacts: artifacts:
name: $CI_COMMIT_REF_SLUG-linux-amd64-release name: $CI_COMMIT_REF_SLUG-linux-amd64
paths: paths:
- target/release/veilid-cli - target/release/veilid-cli
- target/release/veilid-server - target/release/veilid-server