forked from toshisam/virgilio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
45 lines (45 loc) · 1.23 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: wercker/nodejs
build:
steps:
- npm-install
- npm-test
after-steps:
- hipchat-notify:
token: $HIPCHAT_TOKEN
room-id: $HIPCHAT_ROOM_ID
from-name: $HIPCHAT_FROM
deploy:
steps:
- script:
name: setup npmrc
code: echo "_auth = $NPM_KEY" >> ~/.npmrc; echo "email = $NPM_EMAIL" >> ~/.npmrc
- script:
name: npm publish
code: npm publish
after-steps:
- hipchat-notify:
token: $HIPCHAT_TOKEN
room-id: $HIPCHAT_ROOM_ID
from-name: $HIPCHAT_FROM
- npm-install
- script:
name: install gulp globally
code: sudo npm install -g gulp
- script:
name: publish docs
code: |-
gulp docs
cd documentation
mv virgilio.html index.html
git config --global user.email $GITHUB_EMAIL
git config --global user.name 'IcemobileLab'
git init
git add .
git commit -m "Publishing annotated source code."
git push --force $GITHUB_REMOTE master:gh-pages
- script:
name: check code coverage
code: |-
gulp coverage
sudo npm install -g codeclimate-test-reporter
codeclimate < coverage/lcov.info