-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (57 loc) · 1021 Bytes
/
.travis.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
language: node_js
node_js:
- node
services: mongodb
cache:
directories:
- node_modules
install:
- npm install
branches:
only:
- master
- development
script:
- sleep 5
before_deploy:
- mkdir dist
- echo "Building client distribution."
- cd client
- npm i
- npm run build
- cd ..
- echo "Finished building client distribution."
- echo "Building server distribution."
- cd server
- npm i
- npm run build
- zip server.zip dist package.json .env-cmdrc .ebextensions
- cd ..
- echo "Finished building server distribution."
deploy:
- provider: elasticbeanstalk
skip_cleanup: true
zip_file: server/server.zip
access_key_id:
secret_access_key:
region: us-east-1
app: campfire-stories
env: projects
bucket_name:
on:
branch: master
- provider: s3
access_key_id:
secret_access_key:
bucket:
skip_cleanup: true
region: us-east-1
local_dir: client/build
on:
branch: master
notifications:
email:
recipients:
on_success: always
on_failure: always