This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
118 lines (104 loc) · 4.46 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# The testing matrix considers ruby/puppet versions supported by SIMP and PE:
#
# https://puppet.com/docs/pe/2018.1/component_versions_in_recent_pe_releases.html
# https://puppet.com/misc/puppet-enterprise-lifecycle
# https://puppet.com/docs/pe/2018.1/overview/getting_support_for_pe.html
# ------------------------------------------------------------------------------
# Release Puppet Ruby EOL
# SIMP 6.2 4.10 2.1.9 TBD
# PE 2016.4 4.10 2.1.9 2018-12-31 (LTS)
# PE 2017.3 5.3 2.4.4 2018-12-31
# SIMP 6.3 5.5 2.4.4 TBD***
# PE 2018.1 5.5 2.4.4 2020-05 (LTS)***
# PE 2019.0 6.0 2.5.1 2019-08-31^^^
#
# *** = Modules created for SIMP 6.3+ are not required to support Puppet < 5.5
# ^^^ = SIMP doesn't support 6 yet; tests are info-only and allowed to fail
---
language: ruby
cache: bundler
sudo: false
stages:
- check
- spec
- name: deploy
if: 'fork = false AND tag = true'
bundler_args: --without development system_tests --path .vendor
notifications:
email: false
addons:
apt:
packages:
- rpm
before_install:
- rm -f Gemfile.lock
global:
- STRICT_VARIABLES=yes
jobs:
allow_failures:
- name: 'Latest Puppet 6.x (allowed to fail)'
include:
- stage: check
rvm: 2.4.4
env: PUPPET_VERSION="~> 5.5"
script:
- bundle exec rake check:dot_underscore
- bundle exec rake check:test_file
- bundle exec rake pkg:check_version
- bundle exec rake metadata_lint
- bundle exec rake pkg:compare_latest_tag
- bundle exec rake pkg:create_tag_changelog
- bundle exec rake lint
- bundle exec puppet module build
- stage: spec
name: 'Puppet 4.10 (SIMP 6.2, PE 2016.4)'
rvm: 2.1.9
env: PUPPET_VERSION="~> 4.10.0"
script:
- bundle exec rake spec
- stage: spec
name: 'Puppet 5.3 (PE 2017.3)'
rvm: 2.4.4
env: PUPPET_VERSION="~> 5.3.0"
script:
- bundle exec rake spec
- stage: spec
rvm: 2.4.4
name: 'Puppet 5.5 (SIMP 6.3, PE 2018.1)'
env: PUPPET_VERSION="~> 5.5.0"
script:
- bundle exec rake spec
- stage: spec
name: 'Latest Puppet 5.x'
rvm: 2.4.4
env: PUPPET_VERSION="~> 5.0"
script:
- bundle exec rake spec
- stage: spec
name: 'Latest Puppet 6.x (allowed to fail)'
rvm: 2.5.1
env: PUPPET_VERSION="~>6.0"
script:
- bundle exec rake spec
- stage: deploy
rvm: 2.4.4
script:
- true
before_deploy:
- "export PUPMOD_METADATA_VERSION=`ruby -r json -e \"puts JSON.parse(File.read('metadata.json')).fetch('version')\"`"
- '[[ $TRAVIS_TAG =~ ^simp-${PUPMOD_METADATA_VERSION}$|^${PUPMOD_METADATA_VERSION}$ ]]'
deploy:
- provider: releases
api_key:
secure: "FeKY05yxGww1II+VKou4vP5yYaCy0R74cAO8+nAxfR2IQ29VmSrqCaWcQbm2eBIVUWiLlHPPmRu5woTweo87vhHC6cqclb2NcECfW7dT7P7oycUb8khqzz8d9Fi6yi+hzDP0w8GRboubSUI+IuGNbcDr3riCiyITC7z1Q3RMb5bN8vf4Gi3YKBvC7TLx3LiyXz0WOGFMvIHNyHYmmSHEDJpqL+Fto1HDJyv+V5KIKRP+1z5McVLawDWmAkMaLk37SChQqevHV3nr+HLakm5QuB/wfr7m+BQWZtUHUHQMlEDh+1VwmMcIunLkQ9CYRop71cR8KwstkkuSvk5cg2cqZsbb253Ki/DJfuF68cP0nSS5lXRLf3DDZ06GaM4/zui5EwRkA4Uxsfeb/cS15m+VLvmAulFkR24xQW7uYWdYdblpRxZVjz8LOWUs3YmzyWJqvQkvzVD/VpA+K2E/XMzOGVsx8kjsqzTfxbsy/ydARAWjaRIZ/lkjehF/AhmLz5Xf31hb39JM6EriiEgfWSyoMfDk0xVwCi1yFWap5mHujziwh4onRlpbjxf+OBgc5743RI1nwfzn3EKfRxqMOdD/zg9CP8FnQGd/2ypNURuuFFgXY47KbVNxA8cvs1N0DRKXXuBKJQx035Pd5HwAVTIvSiF5GRc2dZTMnQbcrLYgWo0="
skip_cleanup: true
on:
tags: true
condition: '($SKIP_FORGE_PUBLISH != true)'
- provider: puppetforge
user: simp
password:
secure: "FKZXbcuKXf5zF2vTxBIh9Dog2pPlC69vZOJIT4Ph1uvmHvRKs/zJf0lbRDBVi4rTCFywwGs1lHrvf+dCda4vO4ZR7m9l65UXNmhkC2FI3SbJT6EG+pBmflJqYvUlITylesI6Z5ymZ8Y7bucGTBtGDv1Sv39CKY6RXsPHsiORuIe5WdGOqsbAqCZq6hGTjl+M+v9YHLFSRUkib6H3rOQiqiU4nC3WBxvMNmgiJ/GVPXk+bPG0AP4gZTdDAN/JjXar6uB3G+NrBFeeEf4vN1IOY1PEpgag9cnhyrx9EWFkUZT+jHjR+o0U6XxROktxkAij3BykqEUn1E5nfG+7zWrW5WmcyRsAKgAg7l51ho7P9+DQKFen9PB++a6PEQ7dwNbB0wr/hUTmQdj5YKB7/+v0gxlbrWQGQJuFaRVGnBwQzYg2h4a8I2LVbpbKMZ8eZavbUuLpi5lhugFKrbjIY2XJPrZevB2Fg5gThkjPk0WElb44jPnFZD+f50Y7J6Y6EEM+BOQrckizRQr02Ex+Atn45tigE+rPDZd6U2C7AsYjqoHlgS06du6A13SSKqVpiOgF8spJAl8Q7R98EzO9QjN3j8r5LiVhUqa3RK4d84vyS2MjFlugc3jtYTcV+57WAmw5C+N75oVa48md0xYrQo5xEQ017oGmfAgKCiqqM3i0SKk="
on:
tags: true
condition: '($SKIP_FORGE_PUBLISH != true)'