forked from hrr18-codebrewers/ventureout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (47 loc) · 985 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
sudo: required
dist: trusty
language: node_js
node_js:
- '6'
services:
- mongodb
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
cache:
directories:
- node_modules
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
local_dir: dpl_cd_upload
skip_cleanup: true
on: &2
repo: hrr18-codebrewers/ventureout
bucket: brewerbucket
region: us-west-2
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
skip_cleanup: true
bucket: brewerbucket
key: latest.zip
bundle_type: zip
application: codebrewers
deployment_group: master
region: us-west-2
on: *2
script:
- npm run build:nodeserver-prod -s
- zip -r latest * >/dev/null
- mkdir -p dpl_cd_upload
- mv latest.zip dpl_cd_upload/latest.zip