forked from sprintly/sprintly-kanban
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
47 lines (44 loc) · 1.41 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
box: dignifiedquire/[email protected]
build:
steps:
- script:
name: Use latest npm
code: sudo npm update -g npm
- npm-install
- script:
name: Setup firefox
code: |
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
- npm-test
- script:
name: Build and Cache Production Assets
code: |
npm run build-production
rsync -avzv "$WERCKER_SOURCE_DIR/public" "$WERCKER_CACHE_DIR/$WERCKER_GIT_COMMIT/"
deploy:
steps:
- script:
name: Use latest npm
code: sudo npm update -g npm
- npm-install
- script:
name: Build assets
code: |
if test -d "$WERCKER_CACHE_DIR/$WERCKER_GIT_COMMIT"; then rsync -avzv "$WERCKER_CACHE_DIR/$WERCKER_GIT_COMMIT/" "$WERCKER_SOURCE_DIR" ; else npm run build-production ; fi
- analogj/[email protected]
- script:
name: Commit Assets
code: |
git config --global user.email "[email protected]"
git config --global user.name "Wercker Bot"
git checkout -b wercker-build
npm run build-production-css
npm shrinkwrap
git add public/js/manifold.min.js public/css/main.min.css npm-shrinkwrap.json
git commit -am 'asset compile'
- heroku-deploy:
key-name: DEPLOY_KEY
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL