Projet

Général

Profil

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

root / .gitlab-ci.yml @ 1a986e22

Historique | Voir | Annoter | Télécharger (1,21 ko)

1 feff733b tr
---
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 ece9be27 tr
  - "# 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 feff733b tr
  - gem --version
18
  - bundle -v
19
  - bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
20
21 8726ba4c tr
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5-Puppet ~> 6:
22 feff733b tr
  stage: syntax
23 8726ba4c tr
  image: registry.code.immerda.ch/immerda/container-images/ruby/devel:2.5
24 feff733b tr
  script:
25
    - bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
26
  variables:
27 ece9be27 tr
    PUPPET_GEM_VERSION: '~> 6'
28 9d7d63a6 tr
  tags:
29
    - container
30 feff733b tr
31 8726ba4c tr
parallel_spec-Ruby 2.5-Puppet ~> 6:
32 feff733b tr
  stage: unit
33 8726ba4c tr
  image: registry.code.immerda.ch/immerda/container-images/ruby/devel:2.5
34 feff733b tr
  script:
35
    - bundle exec rake parallel_spec
36
  variables:
37 ece9be27 tr
    PUPPET_GEM_VERSION: '~> 6'
38 9d7d63a6 tr
  tags:
39
    - container