Skip to content

Commit

Permalink
Disable native tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JD557 committed Apr 11, 2024
1 parent ea72774 commit 48de179
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compile_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
- name: Install scala-native libraries
if: matrix.platform == 'native'
run: sudo apt-get update && sudo apt-get -y install libunwind-dev libre2-dev libsdl2-dev
- name: Compile tests (Scala ${{ matrix.scala }} - ${{ matrix.platform }})
run: sbt -J-Xmx3G -Dsbt.color=always ++$SCALA_VERSION $PROJECT/test:compile
# - name: Compile tests (Scala ${{ matrix.scala }} - ${{ matrix.platform }})
# run: sbt -J-Xmx3G -Dsbt.color=always ++$SCALA_VERSION $PROJECT/test:compile
- name: Run tests (Scala ${{ matrix.scala }} - ${{ matrix.platform }})
run: sbt -J-Xmx3G -Dsbt.color=always ++$SCALA_VERSION $PROJECT/test

Expand Down
18 changes: 12 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ val sharedSettings = Seq()

val testSettings = Seq(
libraryDependencies ++= Seq(
"org.scalameta" %%% "munit" % "1.0.0-M11+2-9094c595+20240228-2204-SNAPSHOT" % Test
"org.scalameta" %%% "munit" % "1.0.0-M11" % Test
),
testFrameworks += new TestFramework("munit.Framework")
)
Expand Down Expand Up @@ -86,7 +86,9 @@ val nativeSettings = Seq(
.withLinkStubs(true)
.withLTO(LTO.none)
.withEmbedResources(true)
}
},
// Tests temporarily disabled until munit is released for native 0.5.0
Test / test := (())
)

lazy val root =
Expand All @@ -104,7 +106,8 @@ lazy val core =
crossProject(JVMPlatform, JSPlatform, NativePlatform)
.settings(name := "minart-core")
.settings(sharedSettings)
.settings(testSettings)
.jvmSettings(testSettings) // Tests temporarily disabled until munit is released for native 0.5.0
.jsSettings(testSettings) // Tests temporarily disabled until munit is released for native 0.5.0
.settings(publishSettings)
.settings(docSettings("Minart"))
.settings(siteSettings)
Expand All @@ -116,7 +119,8 @@ lazy val backend =
.dependsOn(core)
.settings(name := "minart-backend")
.settings(sharedSettings)
.settings(testSettings)
.jvmSettings(testSettings) // Tests temporarily disabled until munit is released for native 0.5.0
.jsSettings(testSettings) // Tests temporarily disabled until munit is released for native 0.5.0
.settings(publishSettings)
.settings(docSettings("Minart Backend"))
.jsSettings(jsSettings)
Expand All @@ -127,7 +131,8 @@ lazy val image =
.dependsOn(core, backend % "test")
.settings(name := "minart-image")
.settings(sharedSettings)
.settings(testSettings)
.jvmSettings(testSettings) // Tests temporarily disabled until munit is released for native 0.5.0
.jsSettings(testSettings) // Tests temporarily disabled until munit is released for native 0.5.0
.settings(publishSettings)
.settings(docSettings("Minart Image"))
.jsSettings(jsSettings)
Expand All @@ -138,7 +143,8 @@ lazy val sound =
.dependsOn(core, backend % "test")
.settings(name := "minart-sound")
.settings(sharedSettings)
.settings(testSettings)
.jvmSettings(testSettings) // Tests temporarily disabled until munit is released for native 0.5.0
.jsSettings(testSettings) // Tests temporarily disabled until munit is released for native 0.5.0
.settings(publishSettings)
.settings(docSettings("Minart Sound"))
.jsSettings(jsSettings)
Expand Down

0 comments on commit 48de179

Please sign in to comment.