.gitlab-ci.yml 740 Bytes
Newer Older
Scott Barthelemy's avatar
Scott Barthelemy committed
1 2
---
stages:
3 4
  - validate-syntax
  - test-unit
Scott Barthelemy's avatar
Scott Barthelemy committed
5 6 7
  - acceptance-puppet4
  - acceptance-puppet5

8
before_script:
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
  - pdk --version

pdk_validate:
  stage: 'validate-syntax'
  script:
    - pdk validate
  tags:
    - puppet-tests

pdk_test_unit:
  stage: 'test-unit'
  script:
    - pdk test unit
  tags:
    - puppet-tests
24

Scott Barthelemy's avatar
Scott Barthelemy committed
25 26 27 28
acceptance_with_puppet4:
  stage: 'acceptance-puppet4'
  variables:
    BEAKER_PUPPET_COLLECTION: 'pc1'
29
    BEAKER_debug: 'true'
Scott Barthelemy's avatar
Scott Barthelemy committed
30
  script:
31 32 33
    - pdk bundle exec rake beaker:default
  tags:
    - puppet-tests
Scott Barthelemy's avatar
Scott Barthelemy committed
34

35
acceptance_with_puppet5:
Scott Barthelemy's avatar
Scott Barthelemy committed
36 37 38
  stage: 'acceptance-puppet5'
  variables:
    BEAKER_PUPPET_COLLECTION: 'puppet5'
39
    BEAKER_debug: 'true'
Scott Barthelemy's avatar
Scott Barthelemy committed
40
  script:
41 42 43
    - pdk bundle exec rake beaker:default
  tags:
    - puppet-tests