-
-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/specs2-4.x-maintenance' into spe…
…cs2-cross
- Loading branch information
Showing
37 changed files
with
589 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
scala: [2.12.14] | ||
scala: [2.12.15] | ||
java: [[email protected]] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -49,10 +49,10 @@ jobs: | |
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
|
||
- name: Check that workflows are up to date | ||
run: sbt --client '++${{ matrix.scala }}; githubWorkflowCheck' | ||
run: sbt ++${{ matrix.scala }} githubWorkflowCheck | ||
|
||
- name: Build project | ||
run: sbt --client '++${{ matrix.scala }}; testOnly -- xonly exclude ci' | ||
run: sbt ++${{ matrix.scala }} 'testOnly -- xonly exclude ci' | ||
|
||
publish: | ||
name: Publish Artifacts | ||
|
@@ -61,7 +61,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
scala: [2.12.14] | ||
scala: [2.12.15] | ||
java: [[email protected]] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -88,4 +88,4 @@ jobs: | |
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
|
||
- name: Publish project | ||
run: sbt --client '++${{ matrix.scala }}; +publish' | ||
run: sbt ++${{ matrix.scala }} +publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.specs2 | ||
|
||
private[specs2] object Platform { | ||
final val isJVM = false | ||
final val isJS = true | ||
final val isNative = false | ||
} |
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
common/js/src/main/scala/org/specs2/concurrent/ImplicitExecutionContexts.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.specs2.concurrent | ||
|
||
/** | ||
* add implicit conversions between the execution environment and execution context / executor service | ||
*/ | ||
trait ImplicitExecutionContexts extends | ||
ImplicitExecutionContextFromExecutionEnv | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
common/js/src/main/scala/org/specs2/concurrent/package.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.specs2 | ||
|
||
import scala.concurrent.{ Await, Awaitable } | ||
import scala.concurrent.duration.Duration | ||
|
||
package object concurrent { | ||
|
||
private[specs2] def awaitResult[A](a: Awaitable[A], d: Duration) = { | ||
Await.result(a, d) | ||
} | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
common/js/src/main/scala/org/specs2/reflect/ClassLoading.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.specs2.reflect | ||
|
||
trait ClassLoading { | ||
def setContextClassLoader(classLoader: ClassLoader): Unit = | ||
() | ||
} |
Oops, something went wrong.