This repository has been archived by the owner on May 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
70 lines (64 loc) · 1.83 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
variables:
SIMPLECOV: 'true'
RAILS_ENV: 'test'
TEASPOON_RAILS_ENV: 'setting_this_prevents_teaspoon_from_loading_rails_too_soon'
.ruby_before_script: &ruby_before_script
before_script:
- export BUNDLE_PATH=$CI_PROJECT_DIR/.gems
- bundle --jobs 2 --retry 3
- bundle exec appraisal install
.ruby_25: &ruby_25
<<: *ruby_before_script
image: registry.roqua.nl/roqua/docker-base-images:ruby-2.7-builder
variables:
SELENIUM_HOST: gitlab-selenium-server
SELENIUM_PORT: 4444
TEST_APP_PORT: 3000
services:
- name: selenium/standalone-chrome
alias: gitlab-selenium-server
cache:
key: ruby_25c
paths:
- .gems
rails_52_ruby_25:
<<: *ruby_25
script:
- cat gemfiles/rails52.gemfile.lock
- bundle exec appraisal rails52 rspec
rails_60_ruby_25:
<<: *ruby_25
script:
- cat gemfiles/rails60.gemfile.lock
- bundle exec appraisal rails60 rspec
- bundle exec appraisal rails60 teaspoon -r spec/teaspoon_env.rb
dependency_scanning:
image: registry.roqua.nl/roqua/dependency_scanning
variables:
DOCKER_DRIVER: overlay2
FF_USE_LEGACY_VOLUMES_MOUNTING_ORDER: "true"
allow_failure: true
services:
- docker:stable-dind
script:
- scan_dependencies.sh
artifacts:
paths: [gl-dependency-scanning-report.json]
code_quality:
image: docker:stable
stage: test
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
before_script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
script:
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [gl-code-quality-report.json]