-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from karolchmist/test-fixing
Fix tests for scala 2.13
- Loading branch information
Showing
12 changed files
with
284 additions
and
114 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/scala-forklift | ||
docker: | ||
- image: circleci/openjdk:8 | ||
- image: circleci/mysql:5.7.29 | ||
environment: | ||
MYSQL_DATABASE: circle_test | ||
MYSQL_USER: root | ||
MYSQL_ALLOW_EMPTY_PASSWORD: true | ||
- image: circleci/postgres:9.6.9 | ||
environment: | ||
POSTGRES_USER: circleci | ||
POSTGRES_DB: circle_test | ||
environment: | ||
SBT_VERSION: 1.3.7 | ||
steps: | ||
- run: echo 'export ARTIFACT_BUILD=$CIRCLE_PROJECT_REPONAME-$CIRCLE_BUILD_NUM.zip' >> $BASH_ENV | ||
- run: | ||
name: Get sbt binary | ||
command: | | ||
apt update && apt install -y curl | ||
curl -L -o sbt-$SBT_VERSION.deb https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb | ||
sudo dpkg -i sbt-$SBT_VERSION.deb | ||
rm sbt-$SBT_VERSION.deb | ||
sudo apt-get update | ||
sudo apt-get install -y sbt python-pip git | ||
pip install awscli | ||
sudo apt-get clean && sudo apt-get autoclean | ||
- checkout | ||
- restore_cache: | ||
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/ | ||
key: sbt-cache | ||
- run: | ||
name: Crossompile scala-forklift | ||
command: sbt +compile | ||
- run: | ||
name: Compile tests | ||
command: | | ||
sbt +test:compile | ||
sbt +publishLocal | ||
- run: | ||
name: Test scala-forklift scala 2.12 | ||
command: sbt '++ 2.12.11; test:test' | ||
environment: | ||
JAVA_OPTS: "-Xms256m -Xmx512m" | ||
- run: | ||
name: Test scala-forklift scala 2.13 | ||
command: sbt '++ 2.13.1; test:test' | ||
environment: | ||
JAVA_OPTS: "-Xms256m -Xmx512m" | ||
- save_cache: | ||
key: sbt-cache | ||
paths: | ||
- "~/.ivy2/cache" | ||
- "~/.sbt" | ||
- "~/.m2" |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.13 | ||
sbt.version=1.3.7 |
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,14 @@ | ||
<configuration> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<!-- <logger name="slick.jdbc.JdbcBackend.statement" level="DEBUG"/>--> | ||
<!-- <logger name="slick.jdbc.JdbcBackend.parameter" level="DEBUG"/>--> | ||
|
||
<root level="warn"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
</configuration> |
Oops, something went wrong.