wercker.yml in itamae-plugin-recipe-consul-0.1.3.beta1 vs wercker.yml in itamae-plugin-recipe-consul-0.1.3
- old
+ new
@@ -1,70 +1,75 @@
# This references the default Ruby container from
# the Docker Hub.
# https://registry.hub.docker.com/_/ruby/
# If you want to use a specific version you would use a tag:
# ruby:2.2.2
-box: sue445/rvm-vagrant-digitalocean@1.0.0
+box: drecom/centos-ruby:2.3.1
# You can also use services such as databases. Read more on our dev center:
# http://devcenter.wercker.com/docs/services/index.html
# services:
# - postgres
# http://devcenter.wercker.com/docs/services/postgresql.html
# - mongodb
# http://devcenter.wercker.com/docs/services/mongodb.html
-# This is the build pipeline. Pipelines are the core of wercker
-# Read more about pipelines on our dev center
-# http://devcenter.wercker.com/docs/pipelines/index.html
+default: &default
+ after-steps:
+ - script:
+ name: set variables
+ code: |
+ # NOTE: override .ruby-version in pretty-slack-notify
+ export RBENV_VERSION=2.3.1
+
+ - script:
+ name: remove all vms
+ code: vagrant destroy -f
+
+ - wantedly/pretty-slack-notify:
+ webhook_url: $SLACK_WEBHOOK_URL
+ username: wercker_build
+
build:
- # Steps make up the actions in your pipeline
- # Read more about steps on our dev center:
- # http://devcenter.wercker.com/docs/steps/index.html
steps:
- - rvm-use:
- version: 2.3.0
+build-centos65:
+ <<: *default
+ steps:
- script:
- name: install bundler
- code: gem install bundler -v 1.10.6 --no-document
+ name: setup
+ code: ./ci/setup.sh
- bundle-install:
jobs: 4
- script:
- name: echo ruby information
- code: |
- echo "ruby version $(ruby --version) running"
- echo "from location $(which ruby)"
- echo -p "gem list: $(gem list)"
+ name: build CentOS 6.5
+ code: ./ci/build.sh centos65
+build-centos70:
+ <<: *default
+ steps:
- script:
- name: create .ssh directory
- code: mkdir -m 700 -p $HOME/.ssh
+ name: setup
+ code: ./ci/setup.sh
- - create-file:
- name: put private key
- filename: $HOME/.ssh/id_rsa.vagrant
- overwrite: true
- hide-from-log: true
- content: $DIGITALOCEAN_KEY_PRIVATE
+ - bundle-install:
+ jobs: 4
- - create-file:
- name: put public key
- filename: $HOME/.ssh/id_rsa.vagrant.pub
- overwrite: true
- hide-from-log: true
- content: $DIGITALOCEAN_KEY_PUBLIC
-
- script:
- name: chmod 600 id_rsa
- code: chmod 600 $HOME/.ssh/id_rsa.vagrant
+ name: build CentOS 7.0
+ code: ./ci/build.sh centos70
+build-debian8:
+ <<: *default
+ steps:
- script:
- name: paraduct test
- code: bundle exec paraduct test
+ name: setup
+ code: ./ci/setup.sh
- after-steps:
- - wantedly/pretty-slack-notify:
- webhook_url: $SLACK_WEBHOOK_URL
- username: wercker_build
+ - bundle-install:
+ jobs: 4
+
+ - script:
+ name: build Debian 8
+ code: ./ci/build.sh debian8