-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamplify.yml
51 lines (50 loc) · 1.45 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
version: 1.0
frontend:
phases:
preBuild:
commands:
- npm install --quiet --global expo-cli
- >
if [ -f yarn.lock ]; then
yarn
elif [ -f package-lock.json ] || [ -f npm-shrinkwrap.json ]; then
npm ci
else
npm install
fi
build:
commands:
- echo "EXPO_PUBLIC_GOOGLE_MAPS_API_KEY=$GOOGLE_MAPS_API_KEY" >> .env
- npx expo export --platform web
artifacts:
baseDirectory: dist
files:
- "**/*"
cache:
paths:
- node_modules/**/*
- $(npm root --global)/**/*
# test:
# phases:
# preTest:
# commands:
# - npm ci
# - npm install -g pm2
# - npm install -g wait-on
# - npm install mocha mochawesome mochawesome-merge mochawesome-report-generator
# - npm install serve
# - pm2 start "npx serve dist"
# - wait-on http://localhost:3000
# test:
# commands:
# - 'npx cypress run --reporter mochawesome --reporter-options "reportDir=cypress/report/mochawesome-report,overwrite=false,html=false,json=true,timestamp=mmddyyyy_HHMMss"'
# postTest:
# commands:
# - npx mochawesome-merge cypress/report/mochawesome-report/mochawesome*.json > cypress/report/mochawesome.json
# - pm2 kill
# artifacts:
# baseDirectory: cypress
# configFilePath: "**/mochawesome.json"
# files:
# - "**/*.png"
# - "**/*.mp4"