aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2014-11-12 12:02:21 +0100
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2014-11-12 12:02:21 +0100
commitda786b3d54f349aab46098aadf44e7de671db7d4 (patch)
tree4e69c2da0d698309fb2684ab10023a3a44082383
parente35f1448f4922e2eb149e7d9f23fb658547a3780 (diff)
downloadpuppet-dhcp-da786b3d54f349aab46098aadf44e7de671db7d4.tar.gz
puppet-dhcp-da786b3d54f349aab46098aadf44e7de671db7d4.tar.bz2
Sync .travis.yml
-rw-r--r--.travis.yml21
-rw-r--r--Gemfile1
-rw-r--r--Rakefile5
3 files changed, 18 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml
index 3ba14f1..1960a8e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,15 +1,7 @@
---
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: "GYIGnZ98ZyME1UnbaC94ymdyPQq6fdDHDgPf/HWgGdDAdGKFar7uxAQhSv5F
-HdV3pDly4HEecB3dGr90la2gm4lUvtHvV+FCiSaEwocHegeICvWaJDUOh5+e
-nl2svx0XlpdjCPMO/3EGZ4EWT/Sy1OVFJCiBO2CDE5h+Ex+xcDs="
+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: "vAwCsf7dOPitWzwZFk/nKa8vCqkpvBHc/Ik9lgJHpp1f/FY+ywetifCFHtCCiaJnvmLfsolB3m6oh7XmxVfToXNb7Lcr/qwngoFI0AMDOQH3P8WXN5xTuBFWYZTz3ffjllHZGwykVPgd1DgGbStlXFZST8OoCEpRGFGf9nPxNrU="
+ 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
diff --git a/Gemfile b/Gemfile
index 2e01aab..29ed93f 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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']
diff --git a/Rakefile b/Rakefile
index ee78ce6..47d75d8 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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