Added Dockerfile and tests.
Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
		@ -8,10 +8,30 @@
 | 
			
		||||
stages:
 | 
			
		||||
  - test
 | 
			
		||||
 | 
			
		||||
sast:
 | 
			
		||||
.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
 | 
			
		||||
 | 
			
		||||
include:
 | 
			
		||||
  - template: Security/SAST.gitlab-ci.yml
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user