-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (24 loc) · 760 Bytes
/
.travis.yml
File metadata and controls
29 lines (24 loc) · 760 Bytes
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
language: generic
# setting superuser permission for the build
sudo: required
# install docker/docker-cli
services:
- docker
# everything under this section runs before we run tests or deploy project
before_install:
- docker build -t sharozmirza/docker-react -f Dockerfile.dev .
# this section has all the commands to run the test suit
script:
- docker run -e CI=true sharozmirza/docker-react npm run test
# deployment configuration
deploy:
provider: elasticbeanstalk
region: "us-east-1"
app: "docker-react"
env: "DockerReact-env"
bucket-name: "elasticbeanstalk-us-east-1-712562108887"
bucket_path: "docker-react"
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY