-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (29 loc) · 1.04 KB
/
.travis.yml
File metadata and controls
34 lines (29 loc) · 1.04 KB
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
language: generic
sudo: required # need superuser permission
services:
- docker # Travis needs a copy of docker ready to go
# This image name will only be used in Travis
before_install:
- docker build -t leonid11235/docker-react -f Dockerfile.dev .
# when tests are run on Travis CI
# Travis assumes tests run and exists automatically
# however default behavior of npm run test, is run one on time
# and then present menu
# hangs and never exits
# so we need to add -- -- coverage
# but after an update, we achieve the same thing with -e CI=true
# exit with status code 0 is successful
script:
- docker run -e CI=true leonid11235/docker-react npm run test
deploy:
provider: elasticbeanstalk # Hosting provider like digital ocean
region: "us-east-1"
app: "docker-react"
env: "dockerreact-env"
bucket_name: "elasticbeanstalk-us-east-1-793144086309"
bucket_path: "docker-react"
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
# We need API keys that will give access to AWS account over to Travis CI