language: java
sudo: true
jdk: 
      - oraclejdk8

before_install:
 - chmod +x email/gradlew

script:
  - mvn clean install
  - cd email
  - ./gradlew clean
  - ./gradlew assembJar
  - cd build/libs
  - ls -la

after_success:
  - cd ./integration-test
  - pwd
  - mvn com.gavinmogan:codacy-maven-plugin:coverage -DcoverageReportFile=target/site/jacoco/jacoco.xml -DprojectToken=$CODACY_PROJECT_TOKEN  -DapiToken=$CODACY_API_TOKEN

language: java
sudo: true
jdk: 
      - oraclejdk8

jobs:
  include:
    - stage: fullBuild
      script:
        - mvn clean install
      after_success:
        - mvn com.gavinmogan:codacy-maven-plugin:coverage -DcoverageReportFile=integration-test/target/site/jacoco/jacoco.xml -DprojectToken=$CODACY_PROJECT_TOKEN  -DapiToken=$CODACY_API_TOKEN
    - stage: emailBuild
      before_install:
        - chmod +x email/gradlew
      script:
        - cd email && ./gradlew assembJar
Add Travis CI jobs config
Add Travis CI jobs config
