Skip to content
Snippets Groups Projects
Commit 8715c47d authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Sync .travis.yml

parent e8239b00
No related branches found
No related tags found
No related merge requests found
--- ---
language: ruby language: ruby
bundler_args: --without development bundler_args: --without development
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'" script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation' && bundle exec rake metadata"
after_success:
["git clone -q git://github.com/puppetlabs/ghpublisher.git .forge-releng", ".forge-releng/publish"]
env:
global:
- PUBLISHER_LOGIN=camptocamp
- secure: "Dm3y5HRGBs9VyqIAHAVbgETJjoeNfM9P4Og4foN5r1T3r7KvjGh/a6X61kCK
CYZU9v60McoFVnaWbCX6a0duoLplqEA5RiJlfgiay8Fry4ROZTvwNbZWhlqJ
xeXmUMZca7CgYbiKRoxVSwBirKPX26enaAgIArBQXdenoQdO6Eo="
matrix: matrix:
fast_finish: true fast_finish: true
include: include:
...@@ -21,3 +13,14 @@ matrix: ...@@ -21,3 +13,14 @@ matrix:
env: PUPPET_GEM_VERSION="~> 3.0" env: PUPPET_GEM_VERSION="~> 3.0"
notifications: notifications:
email: false email: false
deploy:
provider: puppetforge
user: camptocamp
password:
secure: "XAv4O363tng0KuRnu1ZhhwORy+2CF9UQwdwlFmS+NG9jOaTZZN+PMK8iC7OSIvZN6cfKlYjHRHNuxFBnYlnMrLsM9fVxt4NjjznOgIKQpQDleWk4UitZj5ntyHmUtYtofUd5Bhi/sdYXwGN9pVRCrcfFBmsIRq/dOhXD7Wy5KcQ="
on:
tags: true
# all_branches is required to use tags
all_branches: true
# Only publish if our main Ruby target builds
rvm: 1.9.3
...@@ -5,6 +5,7 @@ group :development, :test do ...@@ -5,6 +5,7 @@ group :development, :test do
gem 'rspec-puppet', :require => false gem 'rspec-puppet', :require => false
gem 'puppetlabs_spec_helper', :require => false gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', :require => false gem 'puppet-lint', :require => false
gem 'metadata-json-lint', :require => false
end end
if facterversion = ENV['FACTER_GEM_VERSION'] if facterversion = ENV['FACTER_GEM_VERSION']
......
...@@ -4,3 +4,8 @@ require 'puppet-lint/tasks/puppet-lint' ...@@ -4,3 +4,8 @@ require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.fail_on_warnings PuppetLint.configuration.fail_on_warnings
PuppetLint.configuration.send('disable_80chars') PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
desc "Lint metadata.json file"
task :metadata do
sh "metadata-json-lint metadata.json"
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment