Skip to content

Commit

Permalink
Add independent step for benchmarks and scripted
Browse files Browse the repository at this point in the history
  • Loading branch information
jvican committed May 2, 2018
1 parent 42d0f10 commit 3175510
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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\")" \
Expand All @@ -23,6 +25,9 @@ matrix:
OS:
- windows
- linux
OPS:
- basic
- extra

clone:
git:
Expand Down Expand Up @@ -62,20 +67,36 @@ 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
- ./bin/add-coursier.sh
- . 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
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: windows
OPS: basic
secrets: [ bloop_jenkins_token ]
commands:
- ./bin/stream-jenkins-log.sh "bloop:$BLOOP_JENKINS_TOKEN"
Expand All @@ -91,6 +112,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.
Expand All @@ -112,6 +134,7 @@ pipeline:
status: success
matrix:
OS: linux
OPS: basic
commands:
- export DRONE_DIR="/drone"
- ./bin/add-coursier.sh
Expand All @@ -124,6 +147,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:
Expand Down

0 comments on commit 3175510

Please sign in to comment.