From ac19a1fb5b59cff9944acc378bf84d4ad872c639 Mon Sep 17 00:00:00 2001 From: Tim Nieradzik Date: Sat, 12 Jan 2019 19:14:33 +0100 Subject: [PATCH] Add Seed configuration - Add Drone CI configuration - Add Bloop to .gitignore --- .drone.yml | 14 +++++++++++ .gitignore | 2 ++ README.md | 1 + build.sbt | 1 - build.toml | 1 + build211.toml | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ build212.toml | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 .drone.yml create mode 120000 build.toml create mode 100644 build211.toml create mode 100644 build212.toml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a3b6e47 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,14 @@ +kind: pipeline +name: default +steps: + - name: build + image: tindzk/seed:latest + pull: always + commands: + - blp-server & + - seed --build=build211.toml bloop + - bloop compile toml-native-test + - bloop test toml-js toml-jvm + - rm -r .bloop build + - seed --build=build212.toml bloop + - bloop test toml-js toml-jvm diff --git a/.gitignore b/.gitignore index 20a46bf..1d09064 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ project/plugins/project/ .scala_dependencies .worksheet .idea + +.bloop diff --git a/README.md b/README.md index e142482..2f1ba2a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # toml-scala [![Build Status](https://travis-ci.org/sparsetech/toml-scala.svg)](https://travis-ci.org/sparsetech/toml-scala) +[![Build Status](http://ci.sparse.tech/api/badges/sparsetech/toml-scala/status.svg)](http://ci.sparse.tech/sparsetech/toml-scala) [![Maven Central](https://img.shields.io/maven-central/v/tech.sparse/toml-scala_2.12.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22tech.sparse%22%20AND%20a%3A%22toml-scala_2.12%22) toml-scala is a feature-complete implementation of [TOML](https://github.com/toml-lang/toml) for the Scala platform. It can parse TOML content into an AST or map it onto `case class` hierarchies. Furthermore, it can generate TOML back from an AST. diff --git a/build.sbt b/build.sbt index ee1752e..810586d 100644 --- a/build.sbt +++ b/build.sbt @@ -5,7 +5,6 @@ val Scala2_11 = "2.11.12" val Scala2_12 = "2.12.8" val FastParse = "1.0.0" val Shapeless = "2.3.3" -val Paradise = "2.1.1" val ScalaCheck = "1.14.0" val ScalaTest = "3.0.5" val ScalaTestNative = "3.2.0-SNAP10" diff --git a/build.toml b/build.toml new file mode 120000 index 0000000..5c51b87 --- /dev/null +++ b/build.toml @@ -0,0 +1 @@ +build212.toml \ No newline at end of file diff --git a/build211.toml b/build211.toml new file mode 100644 index 0000000..a2b2e4e --- /dev/null +++ b/build211.toml @@ -0,0 +1,66 @@ +[project] +scalaVersion = "2.11.12" +scalaJsVersion = "0.6.26" +scalaNativeVersion = "0.3.8" +scalaOptions = [ + "-encoding", "UTF-8", + "-unchecked", + "-deprecation", + "-Xfuture", + "-Yno-adapted-args", + "-Ywarn-numeric-widen", + "-feature" +] +testFrameworks = [ + "org.scalatest.tools.Framework", + "org.scalacheck.ScalaCheckFramework" +] + +[module.toml] +root = "shared" +sources = ["shared/src/main/scala"] +targets = ["js", "jvm", "native"] +scalaDeps = [ + ["com.lihaoyi", "fastparse", "1.0.0"], + ["com.chuusai", "shapeless", "2.3.3"] +] + +[module.toml.jvm] +root = "jvm" +sources = ["jvm/src/main/scala"] + +[module.toml.test.jvm] +sources = ["shared/src/test/scala", "jvm/src/test/scala"] +scalaDeps = [ + ["org.scalatest" , "scalatest" , "3.0.5" ], + ["org.scalacheck", "scalacheck", "1.14.0"] +] + +[module.toml.js] +root = "js" +sources = ["js/src/main/scala"] + +[module.toml.test.js] +sources = ["shared/src/test/scala"] +scalaDeps = [ + ["org.scalatest" , "scalatest" , "3.0.5" ], + ["org.scalacheck", "scalacheck", "1.14.0"] +] + +[module.toml.native] +root = "native" +scalaVersion = "2.11.12" +sources = ["native/src/main/scala"] + +[module.toml.test.native] +# Exclude GeneratedSpec.scala and Generators.scala +sources = [ + "shared/src/test/scala/toml/CodecSpec.scala", + "shared/src/test/scala/toml/EmbedSpec.scala", + "shared/src/test/scala/toml/GenerationSpec.scala", + "shared/src/test/scala/toml/RulesSpec.scala", + "shared/src/test/scala/toml/TestHelpers.scala", +] +scalaDeps = [ + ["org.scalatest", "scalatest", "3.2.0-SNAP10"] +] diff --git a/build212.toml b/build212.toml new file mode 100644 index 0000000..21089cc --- /dev/null +++ b/build212.toml @@ -0,0 +1,66 @@ +[project] +scalaVersion = "2.12.8" +scalaJsVersion = "0.6.26" +scalaNativeVersion = "0.3.8" +scalaOptions = [ + "-encoding", "UTF-8", + "-unchecked", + "-deprecation", + "-Xfuture", + "-Yno-adapted-args", + "-Ywarn-numeric-widen", + "-feature" +] +testFrameworks = [ + "org.scalatest.tools.Framework", + "org.scalacheck.ScalaCheckFramework" +] + +[module.toml] +root = "shared" +sources = ["shared/src/main/scala"] +targets = ["js", "jvm", "native"] +scalaDeps = [ + ["com.lihaoyi", "fastparse", "1.0.0"], + ["com.chuusai", "shapeless", "2.3.3"] +] + +[module.toml.jvm] +root = "jvm" +sources = ["jvm/src/main/scala"] + +[module.toml.test.jvm] +sources = ["shared/src/test/scala", "jvm/src/test/scala"] +scalaDeps = [ + ["org.scalatest" , "scalatest" , "3.0.5" ], + ["org.scalacheck", "scalacheck", "1.14.0"] +] + +[module.toml.js] +root = "js" +sources = ["js/src/main/scala"] + +[module.toml.test.js] +sources = ["shared/src/test/scala"] +scalaDeps = [ + ["org.scalatest" , "scalatest" , "3.0.5" ], + ["org.scalacheck", "scalacheck", "1.14.0"] +] + +[module.toml.native] +root = "native" +scalaVersion = "2.11.12" +sources = ["native/src/main/scala"] + +[module.toml.test.native] +# Exclude GeneratedSpec.scala and Generators.scala +sources = [ + "shared/src/test/scala/toml/CodecSpec.scala", + "shared/src/test/scala/toml/EmbedSpec.scala", + "shared/src/test/scala/toml/GenerationSpec.scala", + "shared/src/test/scala/toml/RulesSpec.scala", + "shared/src/test/scala/toml/TestHelpers.scala", +] +scalaDeps = [ + ["org.scalatest", "scalatest", "3.2.0-SNAP10"] +]