Tags: continuous test and deployment, travis-ci
This repo demonstrates how travis-ci can be used to automatically run unit tests and coverage reports upon commits to your github repo.
Current Build Status = failing
Change build status to passing
Notice that the current build status is failing
2. Go to Travis-ci and sign up for an account with GITHUB
- authorize travis-pro to access your repos
- you should be redirected to this page
https://travis-ci.com/account/repositoriesthat says Github Apps Integration - press on the green
Activatebutton --> greenApprove & Installbutton
-
On the first line of
README.md, replace breadplop/test with<github_username>/vue-deployment-checkExample:
github_username = thngktb
# vuefire-analytics brenda [](https://travis-ci.com/breadplop/test)
# vuefire-analytics brenda [](https://travis-ci.com/thngktb/vue-deployment-check)
- Save and commit change to master (i.e. Scroll to the bottom of the page and press
commit changes) - Go back to the repo's main page (e.g. https://github.com/breadplop/vue-deployment-check) and wait for about 3 minutes
- Refresh the main page and you should see
build:failing
- Go to
main.spec.jsfile and change line 6 toexpect(2).toEqual(3);toexpect(2).toEqual(2); - Save and commit change to master (i.e. Scroll to the bottom of the page and press
commit changes) - Go back to the repo's main page (e.g. https://github.com/breadplop/vue-deployment-check) and wait for about 3 minutes
- Refresh the main page and you should see
build:passing
Well done!