root / .gitlab-ci.yml @ fd0eaeca
Historique | Voir | Annoter | Télécharger (1,21 ko)
1 |
---
|
---|---|
2 |
stages:
|
3 |
- syntax
|
4 |
- unit
|
5 |
|
6 |
cache:
|
7 |
paths:
|
8 |
- vendor/bundle
|
9 |
|
10 |
before_script:
|
11 |
- bundle -v
|
12 |
- rm Gemfile.lock || true
|
13 |
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
|
14 |
- "# Set `rubygems_version` in the .sync.yml to set a value"
|
15 |
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
|
16 |
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
|
17 |
- gem --version
|
18 |
- bundle -v
|
19 |
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
|
20 |
|
21 |
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5-Puppet ~> 6:
|
22 |
stage: syntax |
23 |
image: registry.code.immerda.ch/immerda/container-images/ruby/devel:2.5 |
24 |
script:
|
25 |
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
|
26 |
variables:
|
27 |
PUPPET_GEM_VERSION: '~> 6' |
28 |
tags:
|
29 |
- container
|
30 |
|
31 |
parallel_spec-Ruby 2.5-Puppet ~> 6:
|
32 |
stage: unit |
33 |
image: registry.code.immerda.ch/immerda/container-images/ruby/devel:2.5 |
34 |
script:
|
35 |
- bundle exec rake parallel_spec
|
36 |
variables:
|
37 |
PUPPET_GEM_VERSION: '~> 6' |
38 |
tags:
|
39 |
- container
|
40 |
|