forked from simp/pupmod-simp-ima
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
108 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
# 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: "Zpj1dYG0CdsLEkaXac9M4SwtH8u6G57ZQfvEKB0eUsFOfiP1Q+qPa0t5Zp2MK0GpuiDETNpcDOR2cK0lfx8Yv09EN4dZo8ImtB8B6LiJOIu+fby39mWML0bXZSJ07HtOg0GsHs8XDhs4Jl6ETqhwOTe7l54zBen+VY0h/OMcF5itQajwPfRbRVIjuDErItxRCTtq2p9tGMb4IcdhO3RiBiKNC+rSMV/fd7O8VUdpuLhrSGHrUhyoBgnxDZCM1UN23S+/bMzsiZOhyraM/EX7GNv8+7FQPReOrpBWdamJxhABIw2rkSB25FmTBPfvNC32+HtCKu1Cag70Mn08I+uXdesY8hzCefcSySUIbI8wgIPqsPCuLvvzM1mRRPJ86J8zCcmwQw1nwqNe7mFmwgURVFCAxiP7Pibvh+eC2koFQnuZhvZk17agiJNDUQ539UIGhc4/hb2M4PUuLip7PruMMWW+S6UBexrPImLKu1SjlSq2zAPZkJawl6ng3ctNXhgSjUD6tLojd3C/vIB2HhwzxqGr48Ct319PoAhOzTF8PTBJNOfAw5m/Z//0JDTLAqWDyEQ9pg+CSg3y+kbOm6qDtuzJYSwomupD5z8EbyDE5W7c9d9k5wI6f+vkTeFwDGcdIBGlwYJPd7PXAT5Golf5083AAVP6RLEKvwCDBe0T8uI="
skip_cleanup: true
on:
tags: true
condition: '($SKIP_FORGE_PUBLISH != true)'
- provider: puppetforge
user: simp
password:
secure: "LBBYg2vKjWhAOILc/bhgV2ybDEt+JJfZ0mp/pIHb4QaWOnRmdOs5bgSiDrK6a/SLk4W5LNSRTOyLqz5oSO5OvtEC/go/8RndsVq5UJM72/TbmSLdTAUQSTVAYZ3NVY2x5FG3BLtzb1XeCyR7oHSrKvgra4UNG68euebltmANVkF1Ly1Bx8LE/5PK/1CY8bmbhHRCFugAkFkalXVmY6EV65S23vyrkN1nV2Xu+i7y9ewpnECsG7sdduvP/AO7PgGuVX/A4sfw9i8ZOGhfKUxS6xeYmlmT6YdbSlRclwoVqhsLX3lmtbXUGNSWwpoWcOm2kk/t369i2SicD6QIitpQoC9OwlNBsaRTp6cfanyIpNsp1WBOStQLsT2wJUzxrWPs4qGiBBDocGb5Iwv9cNyKFS2ydK/NHGX3EC6JQsORM/3ogkEOtEsgg+ad1FHyxg4fyEMt8339fG2ri58gYyib6KkJTRxM8aBkw/uGOQFFDecF69+Bl6kI4ymAEvxpgwJKBncF2z2IMs7e953Q/fXp4p3vToTRiFGUqeL18vUCmMlmVXlPu5dW/STuMVTJiY1f+0PdY8RLn2IOD8O4tC9OaO30R2DPnLwK3kGKS8zjbcSwkzb8rLGqMWBDTV8iv3EAQ/8FtWhZFk39LDrDvRJLzk9WQRrhaorMGvEt8pJHdxA="
on:
tags: true
condition: '($SKIP_FORGE_PUBLISH != true)'