Last active
December 30, 2015 11:39
-
-
Save hijonathan/7824199 to your computer and use it in GitHub Desktop.
Brunch + Divshot Wercker config.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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