Files
s3bot/.gitlab-ci.yml
2023-02-20 01:52:12 +04:00

38 lines
1.2 KiB
YAML

# You can override the included template(s) by including variable overrides
# 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
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
stages:
- test
.test-template:
tags:
- kube
image: rust:1.67.1-buster
stage: test
interruptible: true
before_script:
- apt update
- apt install -y python3 python3-pip
- pip3 install pre-commit
app-tests:
extends: .test-template
script:
- cargo test
clippy:
extends: .test-template
script:
- rustup component add clippy
- pre-commit run clippy -av
fmt:
extends: .test-template
script:
- rustup component add rustfmt
- pre-commit run fmt -av