-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
18 lines (18 loc) · 863 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo: required ##super user permission
services:
-docker
before_install:
- docker build -t queengineer/docker-react2 -f Dockerfile.dev .
script:
- docker run -e CI=true queengineer/docker-react2 npm run test ##e Set environment variables
deploy:
provider: elasticbeanstalk
region: "us-east-1" #http://dockerreact2-env.eba-iuf62dhd.us-east-1.elasticbeanstalk.com/
app: "docker-react2"
env: "Dockerreact2-env"
bucket_name: "elasticbeanstalk-us-east-1-000215741983" ## from s3 storage created with ebs on AWS
bucket_path: "docker-react2" # equals to appname
on:
branch: master ##whoch branch to be deployed
access_key_id: $AWS_ACCESS_KEY # from IAM Management console add user and set on travis CI env variables
secret_access_key: $AWS_SECRET_KEY # from IAM Management console add user and set on travis CI env variables