-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
22 lines (19 loc) · 906 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
sudo: required
services:
- docker
before_install:
- docker build -t daun/docker-react -f Dockerfile.dev .
script:
- docker run -e CI=true daun/docker-react npm run test -- --coverage # -- --coverage to exit npm run test automatically
deploy:
provider: elasticbeanstalk
region: "us-west-2" # the region you choose
app: "docker" # a name that you setup in aws
env: "Docker-env" # a name that revere as the environment
bucket_name: "elasticbeanstalk-us-west-2-<your-app-id>"
bucket_path: "docker" # the name same as app names
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key:
secure: "AWS_SECRET_KEY" # make sure you put double quote