-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
45 lines (41 loc) · 1.01 KB
/
.gitlab-ci.yml
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
39
40
41
42
43
44
45
---
include:
- template: Security/SAST.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml
- project: 'wearemolecule/gitlab-templates'
ref: master
file: 'docker-build-template.yaml'
- project: 'wearemolecule/gitlab-templates'
ref: master
file: 'vapor-kustomize-deployment.yaml'
stages:
- test
- build
- deploy
variables:
NO_DEPLOY: 'true'
K8S_APP_OVERWRITE: cme-fix-listener
# Cache modules in between jobs
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/bundle
- .bundle
tests:
stage: test
image: ruby:3.0.3
retry: 1
services:
- redis:7-alpine
variables:
TZ: "America/Chicago"
script:
- apt-get update && apt-get install -y tzdata
- mkdir test-results
- gem install bundler -v '2.2.33'
- bundle install --jobs=4 --retry=3 --path vendor/bundle
- NAMESPACE=DEVELOPMENT bundle exec rspec --format progress --format RspecJunitFormatter --out test-results/rspec.xml
artifacts:
expire_in: 7d
paths:
- test-results/rspec.xml