-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (26 loc) · 909 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
sudo: required
services:
- docker
before_install:
- docker build -t skiddykong/docker-react -f Dockerfile.dev .
# default npm run test does not exit on completion so add -- --coverage
script:
- docker run -e CI=true skiddykong/docker-react npm run test -- --coverage
deploy:
edge: true # workaround for travis bug
provide: elasticbeanstalk
region: "us-east-1"
app: "frontend"
env: "Frontend-env"
# travis zips up files to deploy and sends to aws S3 bucket
# EB creates bucket automatically, search for it in S3
bucket_name: "elasticbeanstalk-us-east-1-030693593017"
# bucket has folder for each app, created on first deployment
# defaults to the app name
bucket_path: "frontend"
on:
branch: master
# setup IAM user with access to beanstalk, add keys into
# travis ci via UI as environment variables
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY