Skip to content

Instantly share code, notes, and snippets.

@hijonathan
Last active December 30, 2015 11:39
Show Gist options
  • Save hijonathan/7824199 to your computer and use it in GitHub Desktop.
Save hijonathan/7824199 to your computer and use it in GitHub Desktop.
Brunch + Divshot Wercker config.
box: wercker/nodejs
# Brunch's production build can take a while and doesn't output
# anything by default. Either set a long timeout like this one, or
# run it in debug mode to output logs.
no-response-timeout: 10
# Build definition
build:
# The steps that will be executed on build
steps:
- bundle-install
- npm-install
- plasticine/[email protected]
- script:
name: Build assets for QA
code: ./node_modules/.bin/brunch build
- script:
name: Build assets for PROD
code: PROD=true ./node_modules/.bin/brunch build --production
# A step that executes `npm test` command
- npm-test
after-steps:
- hipchat-notify:
token: $HIPCHAT_TOKEN
room-id: $HIPCHAT_ROOM_ID
deploy:
steps:
- script:
name: Deploy to Divshot
code: |
alias divshot=./node_modules/.bin/divshot
divshot --version
divshot config
divshot config:remove root
divshot config:add root $WERCKER_OUTPUT_DIR
./node_modules/.bin/divshot push $WERCKER_DEPLOYTARGET_NAME --token $DIVSHOT_TOKEN
after-steps:
- hijonathan/[email protected]
- hipchat-notify:
token: $HIPCHAT_TOKEN
room-id: $HIPCHAT_ROOM_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment