Skip to content

mjuniper/travis-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

travis-example

Adapted from https://docs.travis-ci.com/user/for-beginners

  1. On GitHub, fork this repository.
  2. Clone the repository git clone {repository url}
  3. Sign in to Travis CI with your GitHub account, accepting the GitHub access permissions confirmation.
  4. Go to your profile page and enable Travis CI builds for your fork of the travis-example repository.
  5. Take a look at .travis.yml, the file which tells Travis CI what to do. This file tells Travis CI to install the dependencies and run npm test.
  6. Edit the empty NewUser.txt file by adding your name to the empty file. Add the file to git, commit and push, to trigger a Travis CI build: $ git add . $ git commit -m 'Testing Travis CI' $ git push
  7. Wait for Travis CI to run a build on your fork of the travis-example repository, check the build status and notice that the build fails. (Travis CI sends you an email when this happens)
  8. Fix the code by making sure that 2=1+1 in tests/test.spec.js, commit and push to GitHub. This time, the build does not fail. $ git add . $ git commit -m 'Testing Travis CI: fixing the build' $ git push Congratulations, you have added a GitHub repository to Travis and learnt the basics of configuring builds and testing code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published