Initial commit
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
57
.gitlab-ci.yml
Normal file
57
.gitlab-ci.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
cache: &global_cache
|
||||
key:
|
||||
files:
|
||||
- Cargo.lock
|
||||
- Cargo.toml
|
||||
paths:
|
||||
- target/debug/deps
|
||||
- target/debug/build
|
||||
- target/release/deps
|
||||
- target/release/build
|
||||
policy: pull-push
|
||||
|
||||
variables:
|
||||
RUSTFLAGS: "-Dwarnings"
|
||||
|
||||
build:
|
||||
image: registry.karaolidis.com/karaolidis/glyph/rust
|
||||
stage: build
|
||||
cache:
|
||||
<<: *global_cache
|
||||
script:
|
||||
- cargo build
|
||||
|
||||
test:
|
||||
image: registry.karaolidis.com/karaolidis/glyph/rust
|
||||
stage: test
|
||||
cache:
|
||||
<<: *global_cache
|
||||
script:
|
||||
- cargo test
|
||||
|
||||
lint:
|
||||
image: registry.karaolidis.com/karaolidis/glyph/rust
|
||||
stage: test
|
||||
cache:
|
||||
<<: *global_cache
|
||||
script:
|
||||
- cargo fmt --all -- --check
|
||||
- cargo clippy --all-targets --all-features
|
||||
|
||||
depcheck:
|
||||
image: registry.karaolidis.com/karaolidis/glyph/rust
|
||||
stage: test
|
||||
cache:
|
||||
<<: *global_cache
|
||||
script:
|
||||
- cargo outdated
|
||||
- cargo udeps --all-targets
|
||||
|
||||
sast:
|
||||
stage: test
|
||||
include:
|
||||
- template: Security/SAST.gitlab-ci.yml
|
Reference in New Issue
Block a user