blob: 8705233c8f1a8a198382a5506161c10b8ca3722a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
variables:
DOCKER_DRIVER: overlay2
GIT_DEPTH: "1"
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: 'recursive'
stages:
- test
lint:
stage: test
image: ruby:alpine
script:
- apk add bash build-base git shellcheck
- bin/setup
- bin/lint
needs: []
integration:
image: docker:stable
stage: test
services:
- docker:stable-dind
- name: "registry.gitlab.com/gitlab-org/security-products/analyzers/clair-vulnerabilities-db:latest"
alias: clair-vulnerabilities-db
script:
- apk add bash build-base git ruby ruby-bigdecimal ruby-bundler ruby-dev ruby-json
- ./bin/setup
- ./bin/test spec/integration/klar_spec.rb --format RspecJunitFormatter --out rspec.xml
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor
artifacts:
paths:
- rspec.xml
reports:
junit: rspec.xml
|