]> git.netwichtig.de Git - user/henk/tmp/stringstest.git/blob - .gitlab-ci.yml
Generate docs
[user/henk/tmp/stringstest.git] / .gitlab-ci.yml
1 ---
2 stages:
3   - syntax
4   - unit
5
6 default:
7   cache:
8     paths:
9       - vendor/bundle
10
11   before_script: &before_script
12     - bundle -v
13     - rm Gemfile.lock || true
14     - "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
15     - "# Set `rubygems_version` in the .sync.yml to set a value"
16     - "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
17     - '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
18     - gem --version
19     - bundle -v
20     - bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
21
22 validate lint check rubocop-Ruby 2.5.7-Puppet ~> 6:
23   stage: syntax
24   image: ruby:2.5.7
25   script:
26     - bundle exec rake validate lint check rubocop
27   variables:
28     PUPPET_GEM_VERSION: '~> 6'
29
30 parallel_spec-Ruby 2.5.7-Puppet ~> 6:
31   stage: unit
32   image: ruby:2.5.7
33   script:
34     - bundle exec rake parallel_spec
35   variables:
36     PUPPET_GEM_VERSION: '~> 6'
37
38 validate lint check rubocop-Ruby 2.7.2-Puppet ~> 7:
39   stage: syntax
40   image: ruby:2.7.2
41   script:
42     - bundle exec rake validate lint check rubocop
43   variables:
44     PUPPET_GEM_VERSION: '~> 7'
45
46 parallel_spec-Ruby 2.7.2-Puppet ~> 7:
47   stage: unit
48   image: ruby:2.7.2
49   script:
50     - bundle exec rake parallel_spec
51   variables:
52     PUPPET_GEM_VERSION: '~> 7'
53