From 346668a2a0bfe04254e4f11088aef86ba17d72f4 Mon Sep 17 00:00:00 2001 From: Artur Gajowy Date: Tue, 16 Apr 2019 12:34:33 +0200 Subject: [PATCH] Add scalafmtCheckAll to pr build (bors/branch build to come later) This will fail the PR build if code isn't formatted properly. This won't fail builds done by bors, so that it fulfills only informational role for now. We might decide to enforce that for in bors builds later, depending on the results. Parallel execution is disabled for scalafmtCheckAll in CI. See https://github.com/scalameta/scalafmt/issues/1399 for reasons why. --- .drone.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.drone.yml b/.drone.yml index 5efb4a93572..9cd10cffe2c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -63,6 +63,15 @@ pipeline: # pr build + pr-lint: + <<: *pr_build_conditions + group: parallel + <<: *sbttestenv + commands: + - cp -r . ../step.lint && cd ../step.lint + # Disable parallelism during scalafmtCheckAll. See https://github.com/scalameta/scalafmt/issues/1399. + - sbt --info "set Global / concurrentRestrictions := Seq(Tags.limitAll(1))" scalafmtCheckAll + pr-run-unit-tests: <<: *pr_build_conditions group: parallel