-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 856 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
language: node_js
node_js:
- '6.11.0'
branches:
only:
- master
cache:
directories:
- node_modules
before_script:
- npm install
script:
- npm run build
after_success:
- mv appspec.yml build
- cd "build"
before_deploy:
- zip -r latest *
- mkdir -p dpl_cd_upload
- mv latest.zip dpl_cd_upload/latest.zip
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
local_dir: dpl_cd_upload
skip_cleanup: true
on:
repo: karthikbalajikb/WD-Weather-App
bucket: karthikbalajikb
region: us-east-1
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: karthikbalajikb
key: latest.zip
bundle_type: zip
application: WD-Weather-App
deployment_group: WD-Travis-grp
region: us-east-1
on:
repo: karthikbalajikb/WD-Weather-App