-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
94 lines (85 loc) · 2.44 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
language: ruby
bundler_args: --without system_tests development
cache: bundler
before_install:
- bundle -v
- rm Gemfile.lock || true
- gem update bundler
- gem --version
- bundle -v
stages:
- unit
- if: tag !~ ^v\d
name: acceptance
- if: tag =~ ^v\d
name: deploy
script: 'bundle exec rake $CHECK'
matrix:
fast_finish: true
include:
- rvm: 2.4.9
env: CHECK="validate lint strings:generate reference" PUPPET_GEM_VERSION="~> 5"
stage: unit
- rvm: 2.5.7
env: CHECK="validate lint strings:generate reference" PUPPET_GEM_VERSION="~> 6"
stage: unit
- rvm: 2.4.9
env: CHECK="parallel_spec" PUPPET_GEM_VERSION="~> 5"
stage: unit
- rvm: 2.4.9
env: CHECK="parallel_spec" PUPPET_GEM_VERSION="~> 5" FIXTURES_YML=".fixtures-latest.yml"
stage: unit
- rvm: 2.5.7
env: CHECK="parallel_spec" PUPPET_GEM_VERSION="~> 6"
stage: unit
- rvm: 2.5.7
env: CHECK="parallel_spec" PUPPET_GEM_VERSION="~> 6" FIXTURES_YML=".fixtures-latest.yml"
stage: unit
- rvm: 2.4.9
services: docker
env: BEAKER_set="centos-7" BEAKER_PUPPET_COLLECTION=puppet5 CHECK="beaker"
bundler_args:
stage: acceptance
- rvm: 2.5.7
services: docker
env: BEAKER_set="centos-7" BEAKER_PUPPET_COLLECTION=puppet6 CHECK="beaker"
bundler_args:
stage: acceptance
- rvm: 2.5.7
services: docker
env: BEAKER_set="centos-8" BEAKER_PUPPET_COLLECTION=puppet6 CHECK="beaker"
bundler_args:
stage: acceptance
- rvm: 2.5.7
services: docker
env: BEAKER_set="debian-10" BEAKER_PUPPET_COLLECTION=puppet6 CHECK="beaker"
bundler_args:
stage: acceptance
- rvm: 2.5.7
services: docker
env: BEAKER_set="ubuntu-1804" BEAKER_PUPPET_COLLECTION=puppet6 CHECK="beaker"
bundler_args:
stage: acceptance
- env: DEPLOY_TO_FORGE=yes
stage: deploy
allow_failures:
- rvm: 2.4.9
env: CHECK="parallel_spec" PUPPET_GEM_VERSION="~> 5" FIXTURES_YML=".fixtures-latest.yml"
- rvm: 2.5.7
env: CHECK="parallel_spec" PUPPET_GEM_VERSION="~> 6" FIXTURES_YML=".fixtures-latest.yml"
branches:
only:
- master
- /^v\d/
notifications:
email: false
deploy:
provider: puppetforge
user: ghoneycutt
password:
secure: "bHE9oH8hkd9XqfQQ6M5wnoQ3ZU4NSR0pG2jkcDZPljA1ycDPUR2XRzkNdb6YfFjQjx/JqUJ9CFg9cYLmKYvfHS1vvOscvmj9oKySV4v1QRG1k57j16Eevs0HV6Dif371XBE+R6IdPodwEalsjIyMkIV4z3zvXrg46h6xfjLK78U="
on:
tags: true
all_branches: true
condition: "$DEPLOY_TO_FORGE = yes"