-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (49 loc) · 1013 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:
– "14"
branches:
only:
- master
- develop
cache:
directories:
– node_modules
before_install:
- touch .env
- cat .env.travis | envsubst > .env
install:
– npm install
script:
– npm run test
before_deploy:
- zip -r opgg *
- mkdir -p deploy
- mv opgg.zip deploy/opgg.zip
deploy:
- provider : s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: opgg-deploy
region: ap-northeast-2
skip_cleanup: true
acl: private
local_dir: deploy
wait-until-deployed: true
on:
branch: master
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: opgg-deploy
key: opgg.zip
bundle_type: zip
application: travis-deploy
deployment_group: travis-webservice-group
region: ap-northeast-2
wait-until-deployed: true
on:
branch: master
notifications:
email:
recipients: