In this exercise, you will be acting as a developer in an Enterprise level organization.
For your first task, you will be fixing code another developer wrote, a common occurance at a typical developer job. You and the developer have been working on different features for the application but began at the same time. The developer had written his code on the branch, "feature_A", and has already merged his code into master. You will be fixing his code on your own branch labeled, "feature_B", which already has some commits.
Take the following steps to fix the dev's code:
- Fork the repository to your own account on Github. https://github.com/liatrio/presentation-exercise
- Clone the repo onto your machine.
- Change from the "master" branch to your "feature_B" branch.
- Fix the developer's mistake on line 272 of the index.html file to increment time correctly.
- Commit your changes and push them up to GitHub.
- Merge your branch into master and fix any merge conflicts.
- Goto to Travis-CI https://travis-ci.org/ and sign in with Github.
- Navigate to your profile, and switch on the presentation-exercise repository. The repository may take a few seconds to show up.
- Now head back to Github to generate an access token under PROFILE ICON -> Settings -> Developer settings -> Personal access tokens
- Enter your access token in Travis-CI by opening the presentation-exercise repository settings (look for the icon) and enter your auth token under Environemnt Variables. Use the name
GITHUB_TOKEN
and make sure that "Display value in build log" is inactivate. - Head back to the Dashboard and trigger a build for presentation-exercise.
- If your build succeeded, head over back to your fork of your Github repo, go to your environment tab, and click on view deployment to view the web page!
- (OPTIONAL) Make a change to the index file and redeploy it to your changes on your web page. The change may take some time after committing due to Travis-CI. You can also navigate to your Travis-CI build status from your Github repo commit history.