forked from abrader/abrader-gms
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Deleted some non-supported combinations of Puppet and Ruby from Travis Matrix - Added some form of matrix for Gitlab CI - Gitlab CI fixes for old Puppet versions
- Loading branch information
1 parent
76cd666
commit a82735c
Showing
2 changed files
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,61 @@ | ||
image: "ruby:2.4.5" | ||
|
||
--- | ||
cache: | ||
paths: | ||
- vendor/ruby | ||
- spec/fixtures | ||
|
||
variables: | ||
|
||
.puppet400: &puppet400 | ||
PUPPET_LOCATION: 4.0.0 | ||
BUNDLER: '1.7.3' | ||
|
||
.puppet41012: &puppet41012 | ||
PUPPET_LOCATION: 4.10.12 | ||
BUNDLER: '1.7.3' | ||
|
||
before_script: | ||
- gem install bundler --no-document | ||
- bundle install -j $(nproc) --path vendor | ||
.puppet550: &puppet550 | ||
PUPPET_LOCATION: 5.5.0 | ||
BUNDLER: '>= 0' | ||
|
||
test-syntax: | ||
stage: test | ||
.syntax: &syntax | ||
script: | ||
- bundle exec rake syntax | ||
|
||
test-validate: | ||
stage: test | ||
.validate: &validate | ||
script: | ||
- bundle exec rake validate | ||
|
||
test-lint: | ||
stage: test | ||
.lint: &lint | ||
script: | ||
- bundle exec rake lint | ||
|
||
test-rspec: | ||
stage: test | ||
.spec: &spec | ||
script: | ||
- bundle exec rake spec SPEC_OPTS='--format documentation' | ||
coverage: '/Resource coverage: \d+\.\d+/' | ||
|
||
before_script: | ||
- gem install bundler --no-document --version "$BUNDLER" | ||
- bundle install -j $(nproc) --path vendor --without development acceptance | ||
|
||
puppet41012_test: | ||
stage: test | ||
image: "ruby:2.1.9" | ||
<<: [*syntax, *validate, *lint, *spec] | ||
variables: | ||
<<: [*puppet41012] | ||
|
||
puppet550_test: | ||
image: "ruby:2.4.5" | ||
stage: test | ||
<<: [*syntax, *validate, *lint, *spec] | ||
variables: | ||
<<: [*puppet550] | ||
|
||
puppet400_test: | ||
stage: test | ||
image: "ruby:2.1.9" | ||
<<: [*syntax, *validate, *lint, *spec] | ||
variables: | ||
<<: [*puppet400] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters