Giter Club home page Giter Club logo

travis-heroku-config's Introduction

Build Status Code coverage Quality gate

travis-heroku-config

Configuration of CI / CD (travis, heroku).

manual

  • connect travis to github:

    1. Go to Travis-ci.com and Sign up with GitHub.
    2. Accept the Authorization of Travis CI. You’ll be redirected to GitHub.
    3. Click the green Activate button, and select the repositories you want to use with Travis CI.
    4. Add a .travis.yml file to your repository to tell Travis CI what to do.
  • .travis.yml with deploy to heroku

    • gradle wrapper

      language: java
      jdk: oraclejdk8
      
      before_install:
        - chmod +x gradlew
      
      branches:
        only:
        - master
      
      deploy:
        provider: heroku
        api_key:
          secure: $HEROKU_KEY_API
        app: mtumilowicz-hello
      
    • maven wrapper

      language: java
      jdk: oraclejdk8
      
      before_install:
        - chmod +x mvnw
      
      branches:
        only:
        - master
      
      deploy:
        provider: heroku
        api_key:
          secure: $HEROKU_KEY_API
        app: mtumilowicz-hello
      
  • HEROKU_KEY_API

    1. download and install heroku-cli: https://devcenter.heroku.com/articles/heroku-cli
    2. log in:
      $ heroku login
      
      Enter your Heroku credentials.
      
      Email: ...
      Password: ...
      
    3. generate $HEROKU_KEY_API
      heroku auth:token
      
    4. set HEROKU_KEY_API in Environment Variables of a project on travis
  • additional configuration:

    • gradle junit5

      testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.2.0'
      testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.2.0')
      
      test {
          useJUnitPlatform()
      }    
      
    • jacoco (code coverage)

      apply plugin: "jacoco"
      
    • sonar (static code analysis)

      • gradle
        plugins {
            id "org.sonarqube" version "2.6.2"
        }
        
      • .travis.yml
        addons:
          sonarcloud:
            organization: "mtumilowicz-github"
            token:
              secure: $SONAR_TOKEN
          
        script:
          - ./gradlew sonarqube
        

project description

travis-heroku-config's People

Contributors

mtumilowicz avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.