variables:
  MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=./.m2/repository"
  MAVEN_CLI_OPTS: "-s bin/settings.xml --batch-mode -U --errors --fail-at-end --show-version -Droot.logging.level=INFO"

cache:
  paths:
    - ./.m2/repository
  # keep cache across branch
  key: "$CI_BUILD_REF_NAME"

image: maven:3-jdk-8

test:
  stage: test
  script:
    - export repoToken=$COVERALLS_TOKEN
    - mvn $MAVEN_CLI_OPTS clean verify jacoco:report coveralls:report -Dmaven.javadoc.skip=true

deploy:
  stage: deploy
  script:
    - mvn $MAVEN_CLI_OPTS deploy -DskipTests=true -Dmaven.javadoc.skip=true
  only:
    - master
variables:
  MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=./.m2/repository"
  MAVEN_CLI_OPTS: "-s bin/settings.xml --batch-mode -U --errors --fail-at-end --show-version -Droot.logging.level=INFO"

cache:
  paths:
    - ./.m2/repository
  # keep cache across branch
  key: "$CI_BUILD_REF_NAME"

image: maven:3-jdk-8

test:
  stage: test
  script:
    - export repoToken=$COVERALLS_TOKEN
    - mvn $MAVEN_CLI_OPTS clean install verify jacoco:report coveralls:report -Dmaven.javadoc.skip=true

deploy:
  stage: deploy
  script:
    - mvn $MAVEN_CLI_OPTS deploy -DskipTests=true -Dmaven.javadoc.skip=true
  only:
    - master
Install local artifacts before running coveralls.
Install local artifacts before running coveralls.
