Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit b00890b

Browse files
committed
Add automated Lint check (Travis CI)
1 parent a258a70 commit b00890b

File tree

4 files changed

+75
-0
lines changed

4 files changed

+75
-0
lines changed

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
sudo: false
3+
language: ruby
4+
rvm:
5+
- 1.8.7
6+
- 1.9.3
7+
- 2.0.0
8+
- 2.1.10
9+
- 2.2.5
10+
- 2.3.1
11+
env:
12+
- PUPPET_GEM_VERSION="~> 3.4.0"
13+
- PUPPET_GEM_VERSION="~> 3.5.0"
14+
- PUPPET_GEM_VERSION="~> 3.6.0"
15+
- PUPPET_GEM_VERSION="~> 3.7.0"
16+
- PUPPET_GEM_VERSION="~> 3.8.0"
17+
- PUPPET_GEM_VERSION="~> 4.0"
18+
matrix:
19+
exclude:
20+
- rvm: 1.8.7
21+
env: PUPPET_GEM_VERSION="~> 4.0"
22+
- rvm: 2.2.5
23+
env: PUPPET_GEM_VERSION="~> 3.4.0"
24+
- rvm: 2.3.1
25+
env: PUPPET_GEM_VERSION="~> 3.4.0"
26+
- rvm: 2.2.5
27+
env: PUPPET_GEM_VERSION="~> 3.5.0"
28+
- rvm: 2.3.1
29+
env: PUPPET_GEM_VERSION="~> 3.5.0"
30+
- rvm: 2.2.5
31+
env: PUPPET_GEM_VERSION="~> 3.6.0"
32+
- rvm: 2.3.1
33+
env: PUPPET_GEM_VERSION="~> 3.6.0"
34+
- rvm: 2.2.5
35+
env: PUPPET_GEM_VERSION="~> 3.7.0"
36+
- rvm: 2.3.1
37+
env: PUPPET_GEM_VERSION="~> 3.7.0"
38+
- rvm: 2.2.5
39+
env: PUPPET_GEM_VERSION="~> 3.8.0"
40+
- rvm: 2.3.1
41+
env: PUPPET_GEM_VERSION="~> 3.8.0"
42+
fast_finish: true

Gemfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
source 'https://rubygems.org'
2+
3+
if puppetversion = ENV['PUPPET_GEM_VERSION']
4+
gem 'puppet', puppetversion, :require => false
5+
else
6+
gem 'puppet', :require => false
7+
end
8+
9+
gem 'puppetlabs_spec_helper', :require => false
10+
gem 'metadata-json-lint', :require => false
11+
12+
## compatibility
13+
14+
platforms :ruby_18 do
15+
# https://github.com/rspec/rspec-core/issues/1864
16+
gem 'rspec', '< 3.2.0', :require => false
17+
gem 'rake', '< 11.0.0', :require => false
18+
end
19+
20+
platforms :ruby_18, :ruby_19 do
21+
gem 'json', '< 2.0.0', :require => false
22+
gem 'json_pure', '< 2.0.0', :require => false
23+
end

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#oracle_java
2+
[![Build Status](https://travis-ci.org/antoineco/aco-oracle_java.svg?branch=master)](https://travis-ci.org/antoineco/aco-oracle_java)
23

34
####Table of Contents
45

Rakefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require 'puppetlabs_spec_helper/rake_tasks'
2+
require 'puppet-lint/tasks/puppet-lint'
3+
4+
PuppetLint.configuration.fail_on_warnings = true
5+
PuppetLint.configuration.with_context = true
6+
PuppetLint.configuration.send('disable_140chars')
7+
8+
Rake::Task["default"].clear
9+
task :default => [:validate, :lint]

0 commit comments

Comments
 (0)