Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / .gitlab-ci.yml @ 705bb26f

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