forked from simp/pupmod-simp-journald
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
109 lines (95 loc) · 4.13 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
# 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
# PE 2017.3 5.3 2.4.5 2018-12-31
# SIMP 6.3 5.5 2.4.5 TBD***
# PE 2018.1 5.5 2.4.5 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
---
language: ruby
cache: bundler
sudo: false
stages:
- check
- spec
- name: deploy
if: 'tag IS present'
bundler_args: --without development system_tests --path .vendor
notifications:
email: false
addons:
apt:
packages:
- rpm
before_install:
- rm -f Gemfile.lock
- gem install -v '~> 1.17' bundler
global:
- STRICT_VARIABLES=yes
jobs:
include:
- stage: check
name: 'Syntax, style, and validation checks'
rvm: 2.4.5
env: PUPPET_VERSION="~> 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 5.3 (PE 2017.3)'
rvm: 2.4.5
env: PUPPET_VERSION="~> 5.3.0"
script:
- bundle exec rake spec
- stage: spec
rvm: 2.4.5
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.5
env: PUPPET_VERSION="~> 5.0"
script:
- bundle exec rake spec
- stage: spec
name: 'Latest Puppet 6.x'
rvm: 2.5.1
env: PUPPET_VERSION="~> 6.0"
script:
- bundle exec rake spec
- stage: deploy
rvm: 2.4.5
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: "a7NDwZiQUJtofLmiTsVciMKig5aX3YFwLcv0QjW68UXSmCXdPHYcaV/AAVTPbG8+vpRTLxnN2eUNoS4aikUlbbokC814H8H/Cv7L1RxRS4HSrUZFeQX6Pt+4EYe37eenbife5QVufiEO/J7sDwBdMygbSTMIOY3akScA4OEbrEkPmVb1fXL0+e4h6jiinYMWy8AmrW3or4F2KOH3O14Kf0o16pluVZsix5IK7MY8D7LzqIRmfMSlm7ykeGFSuP2qLM+l99mGpztwWQXcjWPNJSYoBAV+yz8a7dzReQqqzQnKMvOiV4u40spstIhZn1u/fMe6fHGtVeaW97xiLeRrSsl4APcAIt/DQt+Njyf5U3nbQ7yc7mqZzYbiUxzRP/niTG+PX+V5P0stHn9V/kSIZso4UVKPPdsbAuuulOeSDfPxXCZOMzkIEtXtNF/z5J6WXk1OQdNAFw2uyeVR02m59LJh817N8vB8BuwDnaAHeTQgmAs9IwX2Ru7XPDkNgEnnm49x+vjzdjp/Vm6gqQwV7pT2rXI4a6VrwFLfS+UrL0cKmzR7+nHRebEnI1MZmo5MXVt3yiae5DyUBp1lNwM+SjL3KsUnUO/HYY34rUoof/PEvZJuKa54Ik1JnE9VWDIgEWx/pOpa3ajYJlhA02BGx64VPkjjI+o4an00G08C7OQ="
skip_cleanup: true
on:
tags: true
condition: '($SKIP_FORGE_PUBLISH != true)'
- provider: puppetforge
user: simp
password:
secure: "EPe9z4DrHZzOALuRhB/u8Cxby3Dk744Qk77sW+CC+ac9JalaYbERkgBeyZqZjrgGZSoIWjHzKS8jcn/ssiEKiVXRU0XZhek77is70t5EKSxKy67fcGRcL4fqJn1fU/5ackmyCp/7xHmgRMiaGqeUq1zHCjrQPbY78QSGW1dWeSbLuvtOhjVp5tfR7OeODLGnTmvrAfzkphQfroPAEUAw0t3CDBSNELrKMGDDQCUMJXSpSiK+rvKr/qgcihxYDRp2zW5z0xbBnGNLfkmvhan8yT3vCISEFWICN8mCuSIvyvpWfP5E2E1gzQUx3ZBgV20GIqoZX87RJpVAfruZYHn15yBxnPwxnKwkELPKchCiih4IHa1E0YZv2xtxyJvZogUvIkQgJaaDZ7sk93hXAWk0AaGqeBbQML32VaGhYXROpRZecXFx+3kFnFhLxJVYVakjYQhll6r0a8BOSem7Jcy0SsNqGllVMmx7LqXX071ooA2wb0GVOO7qrvKR77He5Wt0lf/S3mg+XPBnnW4p4OyLw3fWERMFgr/pClla/r0NdM3WrMwGKcMbtTgC4Jg/WPHrsCcNgqGs+KaGUkmQxIl4QOPzHCWlDtfoConSFR1t/heNwVc8hKP9Oe+1Y+euSIqbLWwIJ37egE6tO9dIF28V2hNlaHyWJIEXeTQV8lDurTY="
on:
tags: true
condition: '($SKIP_FORGE_PUBLISH != true)'