Deploy Node Express App to Heroku using Travis Continuous Integration

Perform Integration Testing and Continuous Deployments to Heroku

Deploy Node Express App to Heroku using Travis Continuous Integration

by John Vincent


Posted on April 5, 2017


Configure Github, Travis and Heroku so that a change to a github repository triggers a Travis CI build which executes Mocha/Chai Unit Tests and if successful, deploys to Heroku

Configure Github, Travis and Heroku so that a change to a Github repository triggers a Travis CI build which executes Mocha/Chai Unit Tests and if successful, deploys to Heroku.

Tasks

See Thinkful course for details.

Final Result

My Git repository

Deployed to Heroku

Development

cd MyDevelopment/github/thinkful
git clone https://github.com/Thinkful-Ed/node-shopping-list-integration-tests.git

cd node-shopping-list-integration-tests

created new repository on Github:

node-shopping-list-integration-tests

change to new remote:

git remote set-url origin https://github.com/johnvincentio/node-shopping-list-integration-tests

Push the master branch up to your new repository on GitHub:

git push -u origin master

Install dependencies:

npm install

To run the tests:

npm test

Travis CI

For details, see Continuous Integration with Travis CI

Tests and CI for Blogging AppDeploy Static Website to Heroku