From f7cf859a18967be25c089709d67c1a5942e196c0 Mon Sep 17 00:00:00 2001 From: jvican Date: Wed, 2 May 2018 10:13:30 +0200 Subject: [PATCH] Add independent step for benchmarks and scripted --- .drone.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index e790356540..c50e45ee08 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,13 +4,15 @@ matrix: SBT_RUN: - sbt "benchmarks/compile" \ "jsonConfig/test" \ - "sbtBloop/scripted" \ "frontend/integrationSetUpBloop" \ - "benchmarks/jmh:run .*HotBloopBenchmark.* -wi 0 -i 1 -f1 -t1 -p project=with-tests -p projectName=with-tests" \ "backend/test" \ "frontend/test" \ "docs/makeSite" + SBT_RUN_BENCHMARKS_AND_SCRIPTED: + - sbt "sbtBloop/scripted" \ + "benchmarks/jmh:run .*HotBloopBenchmark.* -wi 0 -i 1 -f1 -t1 -p project=with-tests -p projectName=with-tests" + SBT_PUBLISH: - sbt "set pgpPublicRing in Global := file(\"/drone/.gnupg/pubring.asc\")" \ "set pgpSecretRing in Global := file(\"/drone/.gnupg/secring.asc\")" \ @@ -23,6 +25,9 @@ matrix: OS: - windows - linux + OPS: + - basic + - extra clone: git: @@ -62,6 +67,7 @@ pipeline: ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ] matrix: OS: linux + OPS: basic commands: - export DRONE_DIR="/drone" - git log | head -n 20 @@ -69,6 +75,20 @@ pipeline: - . bin/detect-community-build.sh # We need to source it for the env variable to be exported - ${SBT_RUN}; ./bin/ci-clean-cache.sh + run_benchmarks_scripted: + image: scalacenter/scala-docs:1.1 + group: build + when: + ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ] + matrix: + OS: linux + OPS: extra + commands: + - export DRONE_DIR="/drone" + - git log | head -n 20 + - ./bin/add-coursier.sh + - ${SBT_RUN_BENCHMARKS_AND_SCRIPTED}; ./bin/ci-clean-cache.sh + build_windows: group: build image: scalacenter/scala-docs:1.0 @@ -91,6 +111,7 @@ pipeline: status: success matrix: OS: linux + OPS: basic commands: - git log | head -n 20 # I have no idea why this has to be done manually... TODO: inspect why. @@ -112,6 +133,7 @@ pipeline: status: success matrix: OS: linux + OPS: basic commands: - export DRONE_DIR="/drone" - ./bin/add-coursier.sh @@ -124,6 +146,7 @@ pipeline: ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ] matrix: OS: linux + OPS: basic secrets: [ sftp_cache_username, sftp_cache_private_key, sftp_cache_server, sftp_cache_path ] rebuild: true mount: