root / .gitlab-ci.yml @ 73ef24d3
Historique | Voir | Annoter | Télécharger (706 octets)
1 |
---
|
---|---|
2 |
stages:
|
3 |
- syntax
|
4 |
- unit
|
5 |
|
6 |
image: registry.code.immerda.ch/immerda/container-images/ruby/devel:2.7 |
7 |
|
8 |
cache:
|
9 |
paths:
|
10 |
- vendor/bundle
|
11 |
|
12 |
before_script:
|
13 |
- bundle -v
|
14 |
- rm Gemfile.lock || true
|
15 |
- gem --version
|
16 |
- bundle -v
|
17 |
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
|
18 |
|
19 |
run syntax:
|
20 |
stage: syntax |
21 |
tags:
|
22 |
- container
|
23 |
script:
|
24 |
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
|
25 |
variables:
|
26 |
PUPPET_GEM_VERSION: '~> 6.0' |
27 |
|
28 |
run parallel-spec puppet 6:
|
29 |
stage: unit |
30 |
tags:
|
31 |
- container
|
32 |
script:
|
33 |
- bundle exec rake parallel_spec
|
34 |
variables:
|
35 |
PUPPET_GEM_VERSION: '~> 6.0' |