Projet

Général

Profil

Révision feff733b

IDfeff733bf9bbcd3c93965c21a1786c289fc092a0
Parent 64134e4e
Enfant 73ef24d3

Ajouté par tr il y a plus de 4 ans

Add a Gitlab CI pipeline

Voir les différences:

.gitlab-ci.yml
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
  - bundle -v
14
  - rm Gemfile.lock || true
15
  - gem --version
16
  - bundle -v
17
  - bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
18

  
19
run syntax:
20
  stage: syntax
21
  tags:
22
    - container
23
  script:
24
    - bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
25
  variables:
26
    PUPPET_GEM_VERSION: '~> 6.0'
27

  
28
run parallel-spec puppet 6:
29
  stage: unit
30
  tags:
31
    - container
32
  script:
33
    - bundle exec rake parallel_spec
34
  variables:
35
    PUPPET_GEM_VERSION: '~> 6.0'
36

  
37
run parallel-spec puppet 5:
38
  stage: unit
39
  image: ruby:2.4.10
40
  tags:
41
    - container
42
  script:
43
    - bundle exec rake parallel_spec
44
  variables:
45
    PUPPET_GEM_VERSION: '~> 5.0'
46

  

Formats disponibles : Unified diff