.gitlab-ci.yml in puppet-debugger-0.4.1 vs .gitlab-ci.yml in puppet-debugger-0.4.2
- old
+ new
@@ -1,16 +1,18 @@
stages:
+ - validate
- test
+ - release
- deploy
- web_deploy
.puppet_def: &puppet_job_def
stage: test
script:
- gem update --system > /dev/null
- gem install bundler > /dev/null
- - bundle install --without development
+ - bundle install --without development validate
- bundle exec puppet module install puppetlabs-stdlib
- bundle exec rake spec
web_trigger_staging:
type: web_deploy
@@ -19,10 +21,32 @@
only:
- master
script:
- "curl -X POST -F token=$PREPL_BUILD_TRIGGER_TOKEN -F ref=$REF https://gitlab.com/api/v3/projects/1146764/trigger/builds"
+rubocop_ruby:
+ stage: validate
+ allow_failure: true
+ only:
+ - branches
+ tags:
+ - ruby2.2
+ script:
+ - bundle install
+ - bundle exec rubocop -D
+
+bump_and_tag:
+ type: release
+ when: manual
+ tags:
+ - ruby2.2
+ only:
+ - master@puppet-debugger/puppet-debugger
+ script:
+ - gem install release_me
+ - bump_and_tag
+
web_trigger_production:
type: web_deploy
variables:
REF: production
only:
@@ -124,6 +148,5 @@
puppet_48_ruby22:
variables:
PUPPET_GEM_VERSION: "~> 4.8"
<<: *puppet_job_def
<<: *ruby22
-