-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move build to mill and add scala-native support (#7)
* move build to mill and add scala-native support * travis updates for mill * scala 2.13.0-M5 support
- Loading branch information
Showing
8 changed files
with
88 additions
and
48 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 |
---|---|---|
@@ -1,7 +1,19 @@ | ||
language: scala | ||
sudo: required | ||
dist: trusty | ||
addons: | ||
apt: | ||
update: true | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
script: | ||
- sbt ++$TRAVIS_SCALA_VERSION genyJVM/test genyJS/test | ||
scala: | ||
- 2.10.4 | ||
- 2.11.8 | ||
sudo: false | ||
- curl -L -o ~/bin/mill https://github.com/lihaoyi/mill/releases/download/0.3.5/0.3.5 && chmod +x ~/bin/mill | ||
- curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x | ||
- export PATH=~/bin/mill:$PATH | ||
- mill geny.__.test | ||
|
||
cache: | ||
directories: | ||
- $HOME/.coursier |
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 @@ | ||
import mill._, scalalib._, scalajslib._, scalanativelib._, publish._ | ||
|
||
|
||
trait GenyPublishModule extends PublishModule { | ||
def artifactName = "geny" | ||
|
||
def publishVersion = "0.1.6" | ||
|
||
def pomSettings = PomSettings( | ||
description = artifactName(), | ||
organization = "com.lihaoyi", | ||
url = "https://github.com/lihaoyi/geny", | ||
licenses = Seq(License.MIT), | ||
scm = SCM( | ||
"git://github.com/lihaoyi/geny.git", | ||
"scm:git://github.com/lihaoyi/geny.git" | ||
), | ||
developers = Seq( | ||
Developer("lihaoyi", "Li Haoyi", "https://github.com/lihaoyi") | ||
) | ||
) | ||
} | ||
|
||
trait Common extends CrossScalaModule { | ||
def millSourcePath = build.millSourcePath / "geny" | ||
def sources = T.sources(millSourcePath / "src") | ||
} | ||
|
||
trait CommonTestModule extends ScalaModule with TestModule { | ||
def ivyDeps = Agg(ivy"com.lihaoyi::utest::0.6.6") | ||
def testFrameworks = Seq("utest.runner.Framework") | ||
} | ||
|
||
|
||
object geny extends Module { | ||
object jvm extends Cross[JvmGenyModule]("2.11.12", "2.12.8", "2.13.0-M5") | ||
class JvmGenyModule(val crossScalaVersion: String) | ||
extends Common with ScalaModule with GenyPublishModule | ||
{ | ||
object test extends Tests with CommonTestModule | ||
} | ||
|
||
object js extends Cross[JSGenyModule](("2.12.8", "0.6.26"), ("2.13.0-M5", "0.6.26")) | ||
class JSGenyModule(val crossScalaVersion: String, crossJSVersion: String) | ||
extends Common with ScalaJSModule with GenyPublishModule | ||
{ | ||
def scalaJSVersion = crossJSVersion | ||
object test extends Tests with CommonTestModule | ||
} | ||
|
||
object native extends Cross[NativeGenyModule](("2.11.12", "0.3.8")) | ||
class NativeGenyModule(val crossScalaVersion: String, crossScalaNativeVersion: String) | ||
extends Common with ScalaNativeModule with GenyPublishModule | ||
{ | ||
def scalaNativeVersion = crossScalaNativeVersion | ||
object test extends Tests with CommonTestModule | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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