From 232cb8d5d76796747365c3c24621733bfd632109 Mon Sep 17 00:00:00 2001 From: Travis Brown Date: Fri, 19 Jun 2020 10:32:47 +0200 Subject: [PATCH] Add Dotty build to CI --- .travis.yml | 9 +++++++++ build.sbt | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0af6325cbf..1542878e8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ jdk: scala_version_212: &scala_version_212 2.12.11 scala_version_213: &scala_version_213 2.13.2 +dotty_version: &dotty_version 0.24.0 before_install: - export PATH=${PATH}:./vendor/bundle @@ -76,6 +77,14 @@ jobs: name: Binary compatibility 2.13 scala: *scala_version_213 + # Note that we're currently only building some modules on Dotty, not running tests. + - &dotty_tests + stage: test + name: Dotty tests + env: TEST="Dotty tests" + script: sbt ++$TRAVIS_SCALA_VERSION! alleycatsLawsJVM/compile + scala: *dotty_version + - stage: styling name: Linting env: TEST="linting" diff --git a/build.sbt b/build.sbt index 825b7dd402..771e52e2c3 100644 --- a/build.sbt +++ b/build.sbt @@ -782,7 +782,8 @@ addCommandAlias("validateJVM", ";fmtCheck;buildJVM;bench/test;validateBC;makeMic addCommandAlias("validateJS", ";catsJS/compile;testsJS/test;js/test") addCommandAlias("validateKernelJS", "kernelLawsJS/test") addCommandAlias("validateFreeJS", "freeJS/test") //separated due to memory constraint on travis -addCommandAlias("validate", ";clean;validateJS;validateKernelJS;validateFreeJS;validateJVM") +addCommandAlias("validateDotty", ";++0.24.0!;alleycatsLawsJVM/compile") +addCommandAlias("validate", ";clean;validateJS;validateKernelJS;validateFreeJS;validateJVM;validateDotty") addCommandAlias("prePR", "fmt")