diff --git a/.ci_scripts/validate.sh b/.ci_scripts/validate.sh new file mode 100755 index 0000000..65986fd --- /dev/null +++ b/.ci_scripts/validate.sh @@ -0,0 +1,18 @@ +#! /bin/bash + +set -e + +echo "[INFO] Check the source format" + +sbt ++$TRAVIS_SCALA_VERSION scalafmt test:scalafmt > /dev/null +git diff --exit-code || (cat >> /dev/stdout <> /dev/stdout + +sbt ++$TRAVIS_SCALA_VERSION testOnly diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..60f0b9d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +sudo: false +language: scala +jdk: + - oraclejdk8 +scala: 2.12.4 +cache: + directories: + - $HOME/.ivy2 + - $HOME/.sbt +script: ./.ci_scripts/validate.sh \ No newline at end of file