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
Branches
Tags
No related merge requests found
---
language: ruby
bundler_args: --without development
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
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="
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation' && bundle exec rake metadata"
matrix:
fast_finish: true
include:
......@@ -21,3 +13,14 @@ matrix:
env: PUPPET_GEM_VERSION="~> 3.0"
notifications:
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
gem 'rspec-puppet', :require => false
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', :require => false
gem 'metadata-json-lint', :require => false
end
if facterversion = ENV['FACTER_GEM_VERSION']
......
......@@ -4,3 +4,8 @@ require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.fail_on_warnings
PuppetLint.configuration.send('disable_80chars')
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