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/repositories
that says Github Apps Integration - press on the green
Activate
button --> greenApprove & Install
button
-
On the first line of
README.md
, replace breadplop/test with<github_username>/vue-deployment-check
Example:
github_username = thngktb
# vuefire-analytics brenda [![Build Status brenda](https://travis-ci.com/breadplop/test.svg?branch=master)](https://travis-ci.com/breadplop/test)
# vuefire-analytics brenda [![Build Status brenda](https://travis-ci.com/thngktb/vue-deployment-check.svg?branch=master)](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
. Click on it to view the failed tests and coverage report.
- Go to
main.spec.js
file 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!