language: java
sudo: false

before_install:
  - sudo apt-get install jq
  - wget -O ~/codacy-coverage-reporter-assembly-latest.jar $(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url)
install: 
  - mvn install -Prelease-artefacts -DskipTests=true -Dinvoker.skip=true -Djacoco.skip=true -B -V
script: 
  - mvn verify -B
  - mvn io.github.mcwarman:jfiglet-maven-plugin:generate -B
after_success:
  - bash <(curl -s https://codecov.io/bash)
  - java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r ./target/site/jacoco-aggregate/jacoco.xml
  - ./before-deploy.sh
  - ./deploy.sh

cache:
  directories:
    - $HOME/.m2

language: java
sudo: false

install: 
  - mvn install -Prelease-artefacts -DskipTests=true -Dinvoker.skip=true -Djacoco.skip=true -B -V
script: 
  - mvn verify -B
  - mvn io.github.mcwarman:jfiglet-maven-plugin:generate -B
after_success:
  - bash <(curl -s https://codecov.io/bash)
  - ./before-deploy.sh
  - ./deploy.sh

cache:
  directories:
    - $HOME/.m2

Remove codacy as causes build to fail
Remove codacy as causes build to fail