forked from simp/pupmod-simp-openscap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (77 loc) · 3.72 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
# The testing matrix considers ruby/puppet versions supported by SIMP and PE:
# ------------------------------------------------------------------------------
# release pup ruby eol
# PE 2016.4 4.7 2.1.9 TBD (LTS)
# PE 2016.5 4.8 2.1.9 2017-10-31
# SIMP6.0.0 4.8 2.1.9 TBD
# PE 2017.1 4.9 2.1.9 2017-10-31
# PE 2017.2 4.10 2.1.9 TBD
---
language: ruby
cache: bundler
sudo: false
bundler_args: --without development system_tests --path .vendor
notifications:
email: false
addons:
apt:
packages:
- rpm
before_install:
- rm -f Gemfile.lock
jobs:
include:
- stage: check
rvm: 2.4.1
env: STRICT_VARIABLES=yes TRUSTED_NODE_DATA=yes 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
rvm: 2.4.1
env: STRICT_VARIABLES=yes TRUSTED_NODE_DATA=yes PUPPET_VERSION="~> 5.0"
script:
- bundle exec rake spec
- stage: spec
rvm: 2.1.9
env: STRICT_VARIABLES=yes TRUSTED_NODE_DATA=yes PUPPET_VERSION="~> 4.10.0"
script:
- bundle exec rake spec
- stage: spec
rvm: 2.1.9
env: STRICT_VARIABLES=yes TRUSTED_NODE_DATA=yes PUPPET_VERSION="~> 4.9.2"
script:
- bundle exec rake spec
- stage: spec
rvm: 2.1.9
env: STRICT_VARIABLES=yes TRUSTED_NODE_DATA=yes PUPPET_VERSION="~> 4.7.0"
script:
- bundle exec rake spec
- stage: deploy
rvm: 2.4.1
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: "HRo82jcdj+UhrZUfHo/tIo2nNajUo4VQAMiKLzo2pmVidK2t6XkEqfbkFu47yHMPdlIGl9cFOmoPWwvKSXH7nZoGnMZi2LZiG1fkkgbnlrhholKLfX1LVhJiuF0Zb8Kk8y2herq5lWB1hRCY8hFVe7JPcwpnOI+xU3O/7PiPImMGZH4LAR4Rww7rIMLZGz8sjWy5N07qYasHngiuv/TdxNrJHAwLQI+EV5V/aG9xx9iP9eZPk6tUYvFWwJcaiEMNnW1yJ4m55wjLSCGI7lGGw62ThB5o2bYP4ndnVf81iaKlcpy+id+5cDjRKjV/lyk5cSNnS8JwCLbmpX5kLU29s2/IgIlGvp6rljdZ+X+WimbLv9AGl+2TmhHe0qxPioFIUD2iMtDDFt3rYCXV5dLEgLD8zW4r9vCJUL7Mz8HfInCELibGh4KMaalgTKcJRjfqxt7AJ3by934i+n3c31exXGjxsk6Vh46nt4BDMV4zebUsFcrBt9MsHh54+KMA+o9/Dy2+UQ3fNtm3cGBixoeZhosGX8HKKEMX51uSl88wG7gsllE7F07o+a/eibOX1PNKAnuspk1JEJELZuu2McC7/7unuA0KQ/2l5FLpywMcdoSRdHNXknfYCFOmdzRoa5jqPAx4e4Ijx3/Jde69KODtumiT4eOFlxoiccusJUscyYw="
skip_cleanup: true
on:
tags: true
condition: '($SKIP_FORGE_PUBLISH != true)'
- provider: puppetforge
user: simp
password:
secure: "G6S8XPjTlqWHMhWtIGPXK0z294Y6kgdUi5G8ySWSCgj4hLuH9gCGgE6zzZTRAycFt08bux9AvIw65VEqDM1MVYYPJKI0PDr3o9/47mLZBVSwJfae2DBekTqb5/pH/WGdzc7olpQs/G+qpT5FKg4L1rVFnhPjcb2IEChU5lhNgY2I+mei4RXIk92o3X53c9MORyaHIaHW09QG0JXB+G4tmDQK8tX6hQoDbqEPKq8q7irSCHqm5o/ICAB35QAv6XaQU+WQ13rUbDKkrYkWtHb3zWFikBOj7AHHxEUFYjh8YZIpVaVNni9JH4rKVCx3igTdZvT3seEf97gniZ2mwCO0gc4E/RkDqR0nK/EzPhC1yAyWN+hlugc1B+XBxQOpfXIv6xelZwQww7aGCn/6g7RWFsTdp89Idp/X+hyH/NboDjBfaySJ0bR3IcXzkMxIzqQF1mxk9zyMgN4SkrK+Lf6Bh1EZPTkM5pjqSnFZhyVwJKzpf0++NNL9w/v4FU5BnJjqOmBhxJk0yukIY3y3RDKJKxAHh5hXFJ0bC31nBc3X0vchQmLqeZ9NjiZvwZBLCcdVMrAHTvW6KYAilBOxXMbywSV5i+7qdxniMe+Yuyf30pqQMdpUGcDtz3QJgO4DFeCdXWfDCU8vtPv/Lg+U7u5TsiljW/hBQ1rXHXo+dp7EpB0="
on:
tags: true
condition: '($SKIP_FORGE_PUBLISH != true)'