In my project I use Travis-CI for continuous integration (builds on every MR to master branch) and also for deploying the artifact to Heroku. Here is my .travis.yml file:

language: java jdk: oraclejdk8 branches: only: - master script: mvn package deploy: provider: heroku api_key: $HEROKU_API_KEY notifications: email: on_success: never on_failure: always

And here is my Procfile :

web java -Dserver.port=$PORT -jar target/my-artifact.jar