thorp/.travis.yml
Paul Campbell 777bc970d7
Enable Coverage reporting to Codecov (#189)
* [sbt] Enable Jacoco XML reports

* [travis] Add coverage step with codacy

* [sbt] Replace jacoco with scoverage

Jacoco doesn't appear to support scala code properly, only counting
some lines of a method.
2019-09-07 19:32:43 +01:00

37 lines
927 B
YAML

language: scala
scala:
- 2.13.0
jdk:
- openjdk8
- openjdk11
env:
- AWS_REGION=eu-west-1
before_install:
- git fetch --tags
stages:
- name: test
- name: release
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
jobs:
include:
- stage: test
script: sbt ++$TRAVIS_SCALA_VERSION test
- stage: coverage
script:
- sbt clean coverage test coverageAggregate
- bash <(curl -s https://codecov.io/bash)
- stage: release
script: sbt ++$TRAVIS_SCALA_VERSION ci-release
cache:
directories:
- $HOME/.sbt/1.0/dependency
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.ivy2/cache
- $HOME/.coursier
before_cache:
- du -h -d 1 $HOME/.ivy2/cache
- du -h -d 2 $HOME/.sbt/
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- rm -rf $HOME/.ivy2/local