Skip to content

Instantly share code, notes, and snippets.

@mitsuruog
Created January 17, 2016 14:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitsuruog/ee724841d81c6ecab5e9 to your computer and use it in GitHub Desktop.
Save mitsuruog/ee724841d81c6ecab5e9 to your computer and use it in GitHub Desktop.
フロントエンドをwerckerでCIテストする最小構成
# This references the default nodejs container from
# the Docker Hub: https://registry.hub.docker.com/_/node/
# If you want Nodesource's container you would reference nodesource/node
# Read more about containers on our dev center
# http://devcenter.wercker.com/docs/containers/index.html
box: node:4.2.2
# 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
# 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
build:
# The steps that will be executed on 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:
# A step that executes `npm install -g` command
- script:
name: install npm -g
code: sudo npm install -g grunt-cli bower
# A step that executes `npm install` command
- npm-install
- script:
name: install bower
code: bower install --allow-root
# A step that executes `npm test` command
- npm-test
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: echo nodejs information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
after-steps:
- install-packages:
packages: sudo gawk
- hipchat-notify:
token: $HIPCHAT_TOKEN
room-id: $HIPCHAT_ROOM
from-name: wercker
on: failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment