Projet

Général

Profil

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

root / .gitlab-ci.yml @ ece9be27

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

1
---
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
  - echo -e "machine code.immerda.ch\nlogin gitlab-ci-token\npassword $CI_JOB_TOKEN" > ~/.netrc
14
  - bundle -v
15
  - rm Gemfile.lock || true
16
  - "# 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
  - gem --version
21
  - bundle -v
22
  - bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
23

    
24
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.7-Puppet ~> 6:
25
  stage: syntax
26
  image: ruby:2.5.7
27
  script:
28
    - bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
29
  variables:
30
    PUPPET_GEM_VERSION: '~> 6'
31

    
32
parallel_spec-Ruby 2.5.7-Puppet ~> 6:
33
  stage: unit
34
  image: ruby:2.5.7
35
  script:
36
    - bundle exec rake parallel_spec
37
  variables:
38
    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'
47