forked from yoshuawuyts/docs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker.yml
78 lines (64 loc) · 1.71 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
box:
id: nodesource/trusty:0.10.38
env:
NODE_ENV: development
dev:
steps:
- script:
name: update npm
code: npm install -g npm@2
- npm-install
- script:
name: npm run build
code: npm run build
- internal/shell:
name: server
code: npm run content && npm run server
build:
# The steps that will be executed on build
steps:
- script:
name: set up permissions
code: |
chmod 777 -R .
chmod 777 -R $WERCKER_CACHE_DIR
export NODE_ENV=development
- script:
name: install new version of npm
code: npm i -g npm
- npm-install
- script:
name: build
code: NODE_ENV=production npm run build
- script:
name: test
code: npm t
- script:
name: test links
code: npm run checkLinks
after-steps:
- slack-notifier:
url: $SLACK_URL
channel: notifications
username: megatron
notify_on: "failed"
deploy:
steps:
- s3sync:
source_dir: build/
delete-removed: true
bucket-url: $AWS_BUCKET_URL
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY
- script:
name: add redirect files
code: |
cd legacy-urls
npm install
node ./index.js
after-steps:
- slack-notifier:
url: $SLACK_URL
channel: notifications
username: soundwave
notify_on: "failed"