Skip to content

Commit 96d7f97

Browse files
authored
Merge pull request #147 from whisklabs/new-ci
Update plugins and create new CI
2 parents 15fdaf6 + f34223e commit 96d7f97

File tree

9 files changed

+32
-43
lines changed

9 files changed

+32
-43
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
on:
3+
push:
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v2
10+
- name: Setup JDK
11+
uses: actions/setup-java@v2
12+
with:
13+
distribution: temurin
14+
java-version: 11
15+
- name: Build and Test
16+
run: sbt -v +test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ target/
22
target-shaded/
33
project/sbt-launch-*.jar
44
.idea/
5+
.bsp/

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
docker-it-scala
22
=============
33

4-
[![Build Status](https://travis-ci.org/whisklabs/docker-it-scala.svg?branch=master)](https://travis-ci.org/whisklabs/docker-it-scala)
54
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.whisk/docker-testkit-core_2.12/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.whisk/docker-testkit-core_2.12)
65
[![Join the chat at https://gitter.im/whisklabs/docker-it-scala](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/whisklabs/docker-it-scala?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
76

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lazy val commonSettings = Seq(
44
scalaVersion := "2.13.5",
55
crossScalaVersions := Seq("2.13.5", "2.12.8", "2.11.12"),
66
scalacOptions ++= Seq("-feature", "-deprecation"),
7-
fork in Test := true,
7+
Test / fork := true,
88
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
99
sonatypeProfileName := "com.whisk",
1010
publishMavenStyle := true,
@@ -94,7 +94,7 @@ lazy val scalatest =
9494
"ch.qos.logback" % "logback-classic" % "1.2.1" % "test",
9595
"org.postgresql" % "postgresql" % "9.4.1210" % "test")
9696
)
97-
.dependsOn(core, testkitSpotifyImpl % "test", testkitDockerJavaImpl % "test", samples % "test")
97+
.dependsOn(core, testkitSpotifyShadedImpl % "test", testkitDockerJavaImpl % "test", samples % "test")
9898

9999
lazy val specs2 =
100100
project

config/src/test/scala/com/whisk/docker/config/test/DockerConfigSpec.scala

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,26 @@ class DockerConfigSpec extends FlatSpec with Matchers with DockerKitConfig {
1818
.withPorts(9042 -> None)
1919
.withReadyChecker(DockerReadyChecker.LogLineContains("Starting listening for CQL clients on"))
2020
.withVolumes(volumes)
21+
.withHostConfig(HostConfig(None, None, None))
2122

2223
configureDockerContainer("docker.cassandra") shouldBe cassandraExpected
2324

2425
val postgresExpected = DockerContainer("postgres:9.4.4")
2526
.withPorts((5432, None))
2627
.withEnv(s"POSTGRES_USER=nph", s"POSTGRES_PASSWORD=suitup")
2728
.withReadyChecker(
28-
DockerReadyChecker.LogLineContains("database system is ready to accept connections"))
29+
DockerReadyChecker.LogLineContains("database system is ready to accept connections")
30+
)
31+
.withHostConfig(HostConfig(None, None, None))
32+
2933

3034
configureDockerContainer("docker.postgres") shouldBe postgresExpected
3135

3236
val mongodbExpected = DockerContainer("mongo:3.0.6")
3337
.withPorts(27017 -> None)
3438
.withReadyChecker(DockerReadyChecker.LogLineContains("waiting for connections on port"))
3539
.withCommand("mongod", "--nojournal", "--smallfiles", "--syncdelay", "0")
40+
.withHostConfig(HostConfig(None, None, None))
3641

3742
configureDockerContainer("docker.mongodb") shouldBe mongodbExpected
3843

@@ -44,7 +49,8 @@ class DockerConfigSpec extends FlatSpec with Matchers with DockerKitConfig {
4449
DockerReadyChecker
4550
.HttpResponseCode(9200, "/")
4651
.within(100.millis)
47-
.looped(20, 1250.millis))
52+
.looped(20, 1250.millis)
53+
)
4854

4955
configureDockerContainer("docker.elasticsearch") shouldBe elasticExpected
5056
}

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.2.8
1+
sbt.version=1.5.5

project/plugins.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0")
1+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.10")
22

3-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0-M1")
3+
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
44

5-
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.2.0")
5+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.5")

scalatest/src/test/scala/com/whisk/docker/DependencyGraphReadyCheckSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DependencyGraphReadyCheckSpec extends FlatSpec with Matchers with DockerKi
3232
"SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=zookeeper:2181")
3333
.withLinks(ContainerLink(zookeeperContainer, "zookeeper"),
3434
ContainerLink(kafkaContainer, "kafka"))
35-
.withReadyChecker(DockerReadyChecker.LogLineContains("Server started, listening for requests"))
35+
.withReadyChecker(DockerReadyChecker.LogLineContains("Session establishment complete on server"))
3636

3737
override def dockerContainers =
3838
schemaRegistryContainer :: kafkaContainer :: zookeeperContainer :: super.dockerContainers

0 commit comments

Comments
 (0)