Skip to content

Commit 98034c3

Browse files
committed
Test that IDE can be started in CI
dotty-library-bootstrappedJS was broke, I fixed it but also removed all js projects from IDE startup as explained in the comment.
1 parent 3ca512d commit 98034c3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.drone.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ steps:
4040
depends_on: [ clone ]
4141
commands:
4242
- cp -R . /tmp/2/ && cd /tmp/2/
43-
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test ;dotty-staging/test ;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test"
43+
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test ;dotty-staging/test ;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test ;configureIDE"
4444
- ./project/scripts/bootstrapCmdTests
4545

4646
- name: community_build

project/Build.scala

+6-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ object MyScalaJSPlugin extends AutoPlugin {
5454

5555
// Typecheck the Scala.js IR found on the classpath
5656
scalaJSLinkerConfig ~= (_.withCheckIR(true)),
57+
58+
// Exclude all these projects from `configureIDE/launchIDE` since they
59+
// take time to compile, print a bunch of warnings, and are rarely edited.
60+
excludeFromIDE := true
5761
)
5862
}
5963

@@ -760,7 +764,8 @@ object Build {
760764
settings(
761765
unmanagedSourceDirectories in Compile :=
762766
(unmanagedSourceDirectories in (`dotty-library-bootstrapped`, Compile)).value,
763-
scalacOptions += "-Yerased-terms", // support declaration of scala.compiletime.erasedValue
767+
scalacOptions in Compile :=
768+
(scalacOptions in (`dotty-library-bootstrapped`, Compile)).value,
764769
)
765770

766771
lazy val tastyCoreSettings = Seq(

0 commit comments

Comments
 (0)