Skip to content

Commit e348ba1

Browse files
committed
Evergreen: Fix versions and add Scala 2.13
SCALA-506
1 parent bf25287 commit e348ba1

File tree

4 files changed

+10
-19
lines changed

4 files changed

+10
-19
lines changed

.evergreen/config.yml

+7-13
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,6 @@ functions:
257257
${PREPARE_SHELL}
258258
echo '{"results": [{ "status": "FAIL", "test_file": "Build", "log_raw": "No test-results.json found was created" } ]}' > ${PROJECT_DIRECTORY}/test-results.json
259259
260-
"install dependencies":
261-
type: test
262-
params:
263-
working_dir: "src"
264-
script: |
265-
${PREPARE_SHELL}
266-
file="${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh"
267-
[ -f ${file} ] && sh ${file} || echo "${file} not available, skipping"
268-
269260
"run static checks":
270261
- command: shell.exec
271262
type: test
@@ -313,7 +304,7 @@ functions:
313304
PROJECT_DIRECTORY=${PROJECT_DIRECTORY} NEXUS_USERNAME=${nexus_username} NEXUS_PASSWORD=${nexus_password} SIGNING_PASSWORD=${signing_password} SIGNING_KEY_ID=${signing_key_id} RING_FILE_GPG_BASE64=${ring_file_gpg_base64} .evergreen/publish-snapshots.sh
314305
315306
hosts: &hosts
316-
- "rhel62-small"
307+
- "rhel70-small"
317308

318309
pre:
319310
- func: "fetch source"
@@ -322,7 +313,6 @@ pre:
322313
- func: "fix absolute paths"
323314
- func: "init test-results"
324315
- func: "make files executable"
325-
- func: "install dependencies"
326316

327317
post:
328318
# Removed, causing timeouts
@@ -401,11 +391,15 @@ axes:
401391
- id: "2.11"
402392
display_name: "2.11"
403393
variables:
404-
SCALA_VERSION: "2.11.11"
394+
SCALA_VERSION: "2.11.12"
405395
- id: "2.12"
406396
display_name: "2.12"
407397
variables:
408-
SCALA_VERSION: "2.12.2"
398+
SCALA_VERSION: "2.12.8"
399+
- id: "2.13"
400+
display_name: "2.13"
401+
variables:
402+
SCALA_VERSION: "2.13.0"
409403

410404
- id: "streamType"
411405
display_name: "streamType"

docs/reference/content/changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Changes between released versions
1212

1313
### 2.7.0
1414
* Updated MongoDB Driver Async to 3.11.0
15+
* Added support for Scala 2.13 [SCALA-506](https://jira.mongodb.org/browse/SCALA-506)
1516
* Updated DEFAULT_CODEC_REGISTRY order, as upstream BsonCodec captures all Bson instances and priority needs to be lower.
1617
* Support $merge pipeline stage in aggregations [SCALA-473](https://jira.mongodb.org/browse/SCALA-473)
1718
* Deprecated BsonArray.apply(Iterable[BsonValue]) added BsonArray.fromIterable [SCALA-531](https://jira.mongodb.org/browse/SCALA-531)

driver/src/it/scala/org/mongodb/scala/DocumentationChangeStreamExampleSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class DocumentationChangeStreamExampleSpec extends RequiresMongoDBISpec with Fut
114114
}
115115

116116
// Implicit functions that execute the Observable and return the results
117-
val waitDuration = Duration(5, "seconds")
117+
val waitDuration = Duration(60, "seconds")
118118

119119
implicit class ObservableExecutor[T](observable: Observable[T]) {
120120
def execute(): Seq[T] = Await.result(observable, waitDuration)

project/MongoScalaBuild.scala

+1-5
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ object MongoScalaBuild extends Build {
5959
val scalacOptionsTest: Seq[String] = Seq( "-unchecked", "-deprecation", "-feature", "-Xlint:-missing-interpolator,_", "-Xcheckinit")
6060

6161
def scalacOptionsVersion(scalaVersion: String): Seq[String] = {
62-
Seq( "-unchecked", "-deprecation", "-feature", "-Ywarn-dead-code"
63-
/*,"-Xfatal-warnings", "-Ymacro-debug-verbose", "-Xlog-implicits", "-Yinfer-debug", "-Xprint:typer"*/) ++ (scalaVersion match {
64-
case "2.12.6" => Seq("-Xlint:-unused,-missing-interpolator,_" /*, "-Ywarn-unused:imports,privates,locals,-implicits,-params"*/)
65-
case _ => Seq("-language:existentials", "-Xlint:-missing-interpolator,_")
66-
})
62+
Seq( "-unchecked", "-deprecation", "-feature", "-Ywarn-dead-code", "-language:existentials", "-Xlint:-missing-interpolator")
6763
}
6864

6965
val versionSettings = Versioning.settings(baseVersion)

0 commit comments

Comments
 (0)