In this course we use Travis-CI with Heroku and Jest, to support continuous integration and deployment.
Online documentation: https://docs.travis-ci.com/user/for-beginners/
Repository used in class: https://github.com/2018-Trento-SEII-INFORG/TestingAndCI
https://docs.travis-ci.com/user/tutorial/ and https://docs.travis-ci.com/user/languages/javascript-with-nodejs
Procfile
:web: node api.js
.travis.yml
to your repo. The file name is important, it has to be named like this. We will see later more details about this. To do this you need to clone your repo locally, create the file, add, commit, and push to github.language: node_js
node_js:
- "8"
https://docs.travis-ci.com/user/deployment/heroku/
To use the default configuration, add your encrypted Heroku api key to your .travis.yml
:
deploy:
provider: heroku
api_key:
secure: "YOUR ENCRYPTED API KEY"