diff --git a/.travis.yml b/.travis.yml index a232582..cd4a23c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,19 +3,34 @@ services: - docker before_install: - - docker build -t singhabhinav/react-project -f Dockerfile_dev . + - docker build -t rkgovindu/react-project:prod -f Dockerfile_dev . script: - - docker run -e CI=true singhabhinav/react-project npm run test - -#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 + - docker run -e CI=true rkgovindu/react-project:prod npm run test + +deploy: + - provider: elasticbeanstalk + region: us-west-1 # Specify your regiiiion + app: "ReactProject2" # Copy ishkkjashdk t from Elastic Beanstalk dashboard + env: "Reactproject2-env" # Copy it from i1 1 Elastic Beanstalk dashboard + bucket_name: "elasticbeanstalk-us-west-1-422800408520" + 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 regiiiion + app: "react-project1" # Copy ishkkjashdk t from Elastic Beanstalk dashboard + env: "ReactProject1-env" # Copy it from 1 Elastic Beanstalk dashboard + bucket_name: "elasticbeanstalk-us-west-1-422800408520" + bucket_path: "docker" + access_key_id: $AWS_ACCESS_KEY + secret_access_key: $AWS_SECRET_KEY + on: + branch: feature + + + diff --git a/src/App.js b/src/App.js index 8ca19e4..5f2e993 100644 --- a/src/App.js +++ b/src/App.js @@ -6,9 +6,8 @@ function App() { return (
- logo -

- Edit src/App.js and save to reload by Abhinav 124. + logo

+ Edit src/App.js and save****AWS Travic CI ****** HELLO by Ravi Govindu. - updated 29 Aug 202qw0 to signupfeature_b -> staging(already existing) - > deployment

- Learn React + Learn React on sign up branch
diff --git a/src/App.test.js b/src/App.test.js index 4db7ebc..637afab 100644 --- a/src/App.test.js +++ b/src/App.test.js @@ -4,6 +4,6 @@ import App from './App'; test('renders learn react link', () => { const { getByText } = render(); - const linkElement = getByText(/learn react/i); + const linkElement = getByText(/Ravi/i); expect(linkElement).toBeInTheDocument(); });