Skip to content
36 changes: 23 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,29 @@ services:
- docker

before_install:
- docker build -t singhabhinav/react-project -f Dockerfile_dev .
- docker build -t prakhar27/react-project -f Dockerfile_dev .

script:
- docker run -e CI=true singhabhinav/react-project npm run test
- docker run -e CI=true prakhar27/react-project npm run test
deploy:
- provider: elasticbeanstalk
region: us-west-1 # Specify your region
app: "react-project-docker-staging" # Copy it from Elastic Beanstalk dashboard
env: "ReactProjectDockerStaging-env" # Copy it from Elastic Beanstalk dashboard
bucket_name: "elasticbeanstalk-us-west-1-290161786162"
bucket_path: "docker"
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
on:
branch: master

#deploy:
# provider: elasticbeanstalk
# region: us-west-1 # Specify your region
# app: "docker-react-project" # Copy it from Elastic Beanstalk dashboard
# env: "DockerReactProject-env-2" # Copy it from Elastic Beanstalk dashboard
# bucket_name: "elasticbeanstalk-us-west-1-034275272121"
# bucket_path: "docker"
# access_key_id: $AWS_ACCESS_KEY
# secret_access_key: $AWS_SECRET_KEY
# on:
# branch: master
- provider: elasticbeanstalk
region: us-west-1 # Specify your region
app: "react-project-docker-pre-staging" # Copy it from Elastic Beanstalk dashboard
env: "ReactProjectDockerPreStaging-env" # Copy it from Elastic Beanstalk dashboard
bucket_name: "elasticbeanstalk-us-west-1-290161786162"
bucket_path: "docker"
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
on:
branch: staging
5 changes: 4 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ function App() {
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload by Abhinav 124.
Edit <code>src/App.js</code> and save to reload by Prakhar27 .
</p>
<p>
I am on my_feature branch
</p>
<a
className="App-link"
Expand Down
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ body {
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;

}