Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit c0b17a5

Browse files
authored
Merge pull request #8 from sparsetech/feat/seed
Add Seed configuration
2 parents 079f26d + da24bf3 commit c0b17a5

File tree

7 files changed

+150
-1
lines changed

7 files changed

+150
-1
lines changed

.drone.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
kind: pipeline
2+
name: default
3+
steps:
4+
- name: build
5+
image: tindzk/seed:latest
6+
pull: always
7+
commands:
8+
- blp-server &
9+
- seed --build=build211.toml bloop
10+
- bloop compile toml-native-test
11+
- bloop test toml-js toml-jvm
12+
- rm -rf .bloop build
13+
- seed --build=build212.toml bloop
14+
- bloop test toml-js toml-jvm

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ project/plugins/project/
1616
.scala_dependencies
1717
.worksheet
1818
.idea
19+
20+
.bloop

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# toml-scala
22
[![Build Status](https://travis-ci.org/sparsetech/toml-scala.svg)](https://travis-ci.org/sparsetech/toml-scala)
3+
[![Build Status](http://ci.sparse.tech/api/badges/sparsetech/toml-scala/status.svg)](http://ci.sparse.tech/sparsetech/toml-scala)
34
[![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)
45

56
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.

build.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ val Scala2_11 = "2.11.12"
55
val Scala2_12 = "2.12.8"
66
val FastParse = "1.0.0"
77
val Shapeless = "2.3.3"
8-
val Paradise = "2.1.1"
98
val ScalaCheck = "1.14.0"
109
val ScalaTest = "3.0.5"
1110
val ScalaTestNative = "3.2.0-SNAP10"

build.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build212.toml

build211.toml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[project]
2+
scalaVersion = "2.11.12"
3+
scalaJsVersion = "0.6.26"
4+
scalaNativeVersion = "0.3.8"
5+
scalaOptions = [
6+
"-encoding", "UTF-8",
7+
"-unchecked",
8+
"-deprecation",
9+
"-Xfuture",
10+
"-Yno-adapted-args",
11+
"-Ywarn-numeric-widen",
12+
"-feature"
13+
]
14+
testFrameworks = [
15+
"org.scalatest.tools.Framework",
16+
"org.scalacheck.ScalaCheckFramework"
17+
]
18+
19+
[module.toml]
20+
root = "shared"
21+
sources = ["shared/src/main/scala"]
22+
targets = ["js", "jvm", "native"]
23+
scalaDeps = [
24+
["com.lihaoyi", "fastparse", "1.0.0"],
25+
["com.chuusai", "shapeless", "2.3.3"]
26+
]
27+
28+
[module.toml.jvm]
29+
root = "jvm"
30+
sources = ["jvm/src/main/scala"]
31+
32+
[module.toml.test.jvm]
33+
sources = ["shared/src/test/scala", "jvm/src/test/scala"]
34+
scalaDeps = [
35+
["org.scalatest" , "scalatest" , "3.0.5" ],
36+
["org.scalacheck", "scalacheck", "1.14.0"]
37+
]
38+
39+
[module.toml.js]
40+
root = "js"
41+
sources = ["js/src/main/scala"]
42+
43+
[module.toml.test.js]
44+
sources = ["shared/src/test/scala"]
45+
scalaDeps = [
46+
["org.scalatest" , "scalatest" , "3.0.5" ],
47+
["org.scalacheck", "scalacheck", "1.14.0"]
48+
]
49+
50+
[module.toml.native]
51+
root = "native"
52+
scalaVersion = "2.11.12"
53+
sources = ["native/src/main/scala"]
54+
55+
[module.toml.test.native]
56+
# Exclude GeneratedSpec.scala and Generators.scala
57+
sources = [
58+
"shared/src/test/scala/toml/CodecSpec.scala",
59+
"shared/src/test/scala/toml/EmbedSpec.scala",
60+
"shared/src/test/scala/toml/GenerationSpec.scala",
61+
"shared/src/test/scala/toml/RulesSpec.scala",
62+
"shared/src/test/scala/toml/TestHelpers.scala",
63+
]
64+
scalaDeps = [
65+
["org.scalatest", "scalatest", "3.2.0-SNAP10"]
66+
]

build212.toml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[project]
2+
scalaVersion = "2.12.8"
3+
scalaJsVersion = "0.6.26"
4+
scalaNativeVersion = "0.3.8"
5+
scalaOptions = [
6+
"-encoding", "UTF-8",
7+
"-unchecked",
8+
"-deprecation",
9+
"-Xfuture",
10+
"-Yno-adapted-args",
11+
"-Ywarn-numeric-widen",
12+
"-feature"
13+
]
14+
testFrameworks = [
15+
"org.scalatest.tools.Framework",
16+
"org.scalacheck.ScalaCheckFramework"
17+
]
18+
19+
[module.toml]
20+
root = "shared"
21+
sources = ["shared/src/main/scala"]
22+
targets = ["js", "jvm", "native"]
23+
scalaDeps = [
24+
["com.lihaoyi", "fastparse", "1.0.0"],
25+
["com.chuusai", "shapeless", "2.3.3"]
26+
]
27+
28+
[module.toml.jvm]
29+
root = "jvm"
30+
sources = ["jvm/src/main/scala"]
31+
32+
[module.toml.test.jvm]
33+
sources = ["shared/src/test/scala", "jvm/src/test/scala"]
34+
scalaDeps = [
35+
["org.scalatest" , "scalatest" , "3.0.5" ],
36+
["org.scalacheck", "scalacheck", "1.14.0"]
37+
]
38+
39+
[module.toml.js]
40+
root = "js"
41+
sources = ["js/src/main/scala"]
42+
43+
[module.toml.test.js]
44+
sources = ["shared/src/test/scala"]
45+
scalaDeps = [
46+
["org.scalatest" , "scalatest" , "3.0.5" ],
47+
["org.scalacheck", "scalacheck", "1.14.0"]
48+
]
49+
50+
[module.toml.native]
51+
root = "native"
52+
scalaVersion = "2.11.12"
53+
sources = ["native/src/main/scala"]
54+
55+
[module.toml.test.native]
56+
# Exclude GeneratedSpec.scala and Generators.scala
57+
sources = [
58+
"shared/src/test/scala/toml/CodecSpec.scala",
59+
"shared/src/test/scala/toml/EmbedSpec.scala",
60+
"shared/src/test/scala/toml/GenerationSpec.scala",
61+
"shared/src/test/scala/toml/RulesSpec.scala",
62+
"shared/src/test/scala/toml/TestHelpers.scala",
63+
]
64+
scalaDeps = [
65+
["org.scalatest", "scalatest", "3.2.0-SNAP10"]
66+
]

0 commit comments

Comments
 (0)