From da786b3d54f349aab46098aadf44e7de671db7d4 Mon Sep 17 00:00:00 2001 From: Raphaƫl Pinson Date: Wed, 12 Nov 2014 12:02:21 +0100 Subject: Sync .travis.yml --- .travis.yml | 21 ++++++++++++--------- Gemfile | 1 + Rakefile | 5 +++++ 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 -- cgit v1.2.3