-
Notifications
You must be signed in to change notification settings - Fork 11
/
wercker.yml
135 lines (123 loc) · 3.03 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# 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:
id: quay.io/shaperid/cypress-python
tag: latest
registry: quay.io
command-timeout: 600
no-response-timeout: 600
# 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
# You can also use services such as databases. Read more on our dev center:
# http://devcenter.wercker.com/docs/services/index.html
# services:
# - postgres
# http://devcenter.wercker.com/docs/services/postgresql.html
# - mongo
# http://devcenter.wercker.com/docs/services/mongodb.html
setup:
steps:
# - virtualenv:
# cwd: back
# virtualenv_location: $WERCKER_SOURCE_DIR/back/venv
- script:
cwd: front
name: install dependencies front
code: |
yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
yarn
- script:
cwd: front
name: build
code: |
yarn build-ci
ls $WERCKER_CACHE_DIR
du -sh $WERCKER_CACHE_DIR
tests:
steps:
- script:
name: set yarn cache
code: |
ls $WERCKER_CACHE_DIR
du -sh $WERCKER_CACHE_DIR
export CYPRESS_CACHE_FOLDER=$WERCKER_CACHE_DIR/cypress
- script:
cwd: front
name: lint
code: yarn lint
deploy-init:
steps:
- script:
name: init deploy
code: echo "init of deploy"
deploy-appsync:
steps:
- script:
name: install dependencies appsync
cwd: back/appsync
code: yarn
- script:
name: venv-appsync
cwd: back
code: |
python -m venv appsync
source appsync/bin/activate
- pip-install:
cwd: back/appsync
- script:
name: install dependencies appsync
cwd: back/appsync
code: yarn
- script:
name: deploy appsync
cwd: back/appsync
code: |
yarn sls:deploy-ci
deploy-users:
steps:
- script:
name: install dependencies users
cwd: back/users
code: yarn
- script:
name: deploy users
cwd: back/users
code: |
yarn sls:deploy-ci
deploy-mail:
steps:
- script:
name: install dependencies mail
cwd: back/mail-processing
code: yarn
- script:
name: venv-mail
cwd: back
code: |
python -m venv mail
source mail/bin/activate
- pip-install:
cwd: back/mail-processing
- script:
name: deploy mail-processing
cwd: back/mail-processing
code: |
yarn sls:deploy-ci
deploy-front:
steps:
- script:
name: deploy front
cwd: front
code: |
yarn build-ci
yarn sls:deploy-ci
after-deploy:
after-steps:
- slack-notifier:
url: $SLACK_URL
channel: dailyidea
username: werckerbot