forked from RockefellerArchiveCenter/dimes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 1.08 KB
/
.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
language: node_js
node_js:
- "lts/*"
cache: yarn
env:
global:
- APPLICATION_NAME: dimes
cache:
directories:
- node_modules
install:
- yarn install
before_script:
- if [ ! -d deploy_scripts ]; then git clone https://github.com/RockefellerArchiveCenter/deploy_scripts.git; fi
- sudo deploy_scripts/substitute_env.sh
script:
- CI=false yarn run build
- yarn test
before_deploy:
- sudo deploy_scripts/make_zip_react.sh $DEPLOY_ZIP_DIR $DEPLOY_ZIP_NAME
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
local_dir: $DEPLOY_ZIP_DIR
skip_cleanup: true
on:
repo: RockefellerArchiveCenter/${APPLICATION_NAME}
branch: base
bucket: $AWS_BUCKET_NAME
region: us-east-1
- provider: codedeploy
bucket: $AWS_BUCKET_NAME
key: $DEPLOY_ZIP_NAME
bundle_type: zip
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
application: ${APPLICATION_NAME}
deployment_group: DimesProduction
region: us-east-1
on:
repo: RockefellerArchiveCenter/${APPLICATION_NAME}
branch: base
notifications:
email: false