Skip to content

Commit ab1080a

Browse files
committed
Run dotty jmh benchmarks in CI.
The long sbt command in .travis.yml was getting unwieldy. This commit adds a `testAll` command which can easily be run locally from the sbt shell to test the command executed in CI.
1 parent 6ed08f2 commit ab1080a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: scala
33
env:
44
global:
55

6-
script: sbt test:compile "hot -psource=scalap -w1 -f1" "; project compilation ; +test" "micro/jmh:run -w1 -f1"
6+
script: sbt testAll
77

88
jdk:
99
- oraclejdk8

build.sbt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ def scala211 = "2.11.11"
66
def dottyLatest = "0.2.0-RC1"
77
scalaVersion in ThisBuild := scala211
88

9+
commands += Command.command("testAll") { s =>
10+
"test:compile" ::
11+
"compilation/test" ::
12+
"hot -psource=scalap -wi 1 -i 1 -f1" ::
13+
"++0.2.0-RC1" ::
14+
"compilation/test" ::
15+
"hot -psource=vector -wi 1 -i 1 -f1" ::
16+
"++2.11.8" ::
17+
"micro/jmh:run -w1 -f1" ::
18+
s
19+
}
20+
921
resolvers += "scala-integration" at "https://scala-ci.typesafe.com/artifactory/scala-integration/"
1022

1123
// Convenient access to builds from PR validation

0 commit comments

Comments
 (0)