mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
testing ci
This commit is contained in:
parent
526f906266
commit
3f0a2b1702
1 changed files with 27 additions and 12 deletions
|
@ -1,12 +1,27 @@
|
||||||
# You can override the included template(s) by including variable overrides
|
image: "rust:latest"
|
||||||
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
|
|
||||||
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
|
variables:
|
||||||
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
|
# move cargo data into the project directory so it can be cached
|
||||||
# Note that environment variables can be set in several places
|
CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
|
||||||
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
# treat compiler warnings as errors (in clippy, when running tests, etc.)
|
||||||
stages:
|
RUSTFLAGS: -Dwarnings
|
||||||
- test
|
|
||||||
sast:
|
default:
|
||||||
stage: test
|
# cancel the job if a newer pipeline starts for the same MR or branch
|
||||||
include:
|
interruptible: true
|
||||||
- template: Security/SAST.gitlab-ci.yml
|
cache:
|
||||||
|
# use the git branch or tag as cache key, so the cache will be
|
||||||
|
# shared among CI runs for the same branch or tag
|
||||||
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
|
# we cache .cargo/ and target/, which effectively enables
|
||||||
|
# incremental builds across different executions of the CI
|
||||||
|
# for the same branch or the same merge request
|
||||||
|
paths:
|
||||||
|
- .cargo
|
||||||
|
- target
|
||||||
|
|
||||||
|
# a format check is run in parallel with the rest
|
||||||
|
cargo:fmt:
|
||||||
|
script:
|
||||||
|
- rustup component add rustfmt
|
||||||
|
- cargo fmt --check
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue