-
Notifications
You must be signed in to change notification settings - Fork 2
/
wercker.yml
80 lines (67 loc) · 1.95 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
79
80
# This references the default nodejs container from
# the Docker Hub: https://registry.hub.docker.com/_/node/
# If you want Nodesource's container you would reference nodesource/node
# Read more about containers on our dev center
# http://devcenter.wercker.com/docs/containers/index.html
box: node
# This is the build pipeline. Pipelines are the core of wercker
# Read more about pipelines on our dev center
# http://devcenter.wercker.com/docs/pipelines/index.html
test:
# The steps that will be executed on build
# Steps make up the actions in your pipeline
# Read more about steps on our dev center:
# http://devcenter.wercker.com/docs/steps/index.html
steps:
# A step that executes `npm install` command
- npm-install
# A step that executes `npm test` command
- npm-test
- script:
name: coverage
code: |
npm run coverage
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: echo nodejs information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
deploy-client:
steps:
# install client dependencies
- script:
name: install yarn
code: |
npm i -g yarn
- script:
name: install c-r-a
code: |
yarn global add create-react-app
- script:
name: yarn install
code: |
yarn install
- script:
name: build app
code: |
yarn build
# deploy built client from build/ folder
- wercker-labs/azure-ftp-deploy:
cwd: build/
publish-url: $publish_url
username: $username
password: $password
deploy-server:
steps:
- script:
name: install depencencies
cwd: server/
code: |
yarn install
- wercker-labs/azure-ftp-deploy:
cwd: server/
publish-url: $publish_url
username: $username
password: $password