-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
amplify.yml
52 lines (52 loc) · 1.24 KB
/
amplify.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
version: 1
env:
variables:
REACT_APP_OFFLINE_ONLY: false
REACT_APP_POPULATE_FAKE_DATA: false
REACT_APP_DEMO_MODE: false
REACT_APP_RESIZE_BUCKET_NAME: platelet-resize-bucket
REACT_APP_DEMO_PROFILE_PICTURES_BUCKET_NAME: platelet-demo-profilepics
REACT_APP_DEMO_PROFILE_PICTURES_BUCKET_REGION: eu-west-1
backend:
phases:
build:
commands:
- '# Execute Amplify CLI with the helper script'
- npm install -g prebuild-install --unsafe-perm=true
- amplify --version
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- npm install
build:
commands:
- npm run build
artifacts:
baseDirectory: build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
test:
artifacts:
baseDirectory: cypress
configFilePath: '**/mochawesome.json'
files:
- '**/*.png'
- '**/*.mp4'
phases:
artifacts: # arbitrary values (other than baseDirectory) bc amplify test phase will fail without them
baseDirectory: ./
configFilePath: '**/mochawesome.json'
files:
- '**/*.png'
- '**/*.mp4'
preTest:
commands:
- echo "no tests"
test:
commands:
- echo "no tests"