root / .gitlab-ci.yml @ ece9be27
Historique | Voir | Annoter | Télécharger (1,39 ko)
1 | feff733b | tr | ---
|
---|---|---|---|
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 | ece9be27 | tr | - echo -e "machine code.immerda.ch\nlogin gitlab-ci-token\npassword $CI_JOB_TOKEN" > ~/.netrc
|
14 | feff733b | tr | - bundle -v
|
15 | - rm Gemfile.lock || true
|
||
16 | ece9be27 | tr | - "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
|
17 | - "# Set `rubygems_version` in the .sync.yml to set a value"
|
||
18 | - "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
|
||
19 | - '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
|
||
20 | feff733b | tr | - gem --version
|
21 | - bundle -v
|
||
22 | - bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
|
||
23 | |||
24 | ece9be27 | tr | syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.7-Puppet ~> 6:
|
25 | feff733b | tr | stage: syntax |
26 | ece9be27 | tr | image: ruby:2.5.7 |
27 | feff733b | tr | script:
|
28 | - bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
|
||
29 | variables:
|
||
30 | ece9be27 | tr | PUPPET_GEM_VERSION: '~> 6' |
31 | feff733b | tr | |
32 | ece9be27 | tr | parallel_spec-Ruby 2.5.7-Puppet ~> 6:
|
33 | feff733b | tr | stage: unit |
34 | ece9be27 | tr | image: ruby:2.5.7 |
35 | feff733b | tr | script:
|
36 | - bundle exec rake parallel_spec
|
||
37 | variables:
|
||
38 | ece9be27 | tr | PUPPET_GEM_VERSION: '~> 6' |
39 | |||
40 | parallel_spec-Ruby 2.4.5-Puppet ~> 5:
|
||
41 | stage: unit |
||
42 | image: ruby:2.4.5 |
||
43 | script:
|
||
44 | - bundle exec rake parallel_spec
|
||
45 | variables:
|
||
46 | PUPPET_GEM_VERSION: '~> 5' |