travis configuration

Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
This commit is contained in:
Miguel Molina
2017-08-08 12:32:32 +02:00
parent d8fc4fe92f
commit f53abe6bc2
3 changed files with 22 additions and 22 deletions

View File

@ -7,6 +7,8 @@ RESOURCES_SRC=../.shared
RESOURCES_DIR=./shared
HEADER_FILE=$(RESOURCES_DIR)/libenry.h
SHELL := /bin/bash
all: $(JAR)
$(JAR): $(RESOURCES_DIR) $(JNAERATOR_JAR)

View File

@ -15,24 +15,3 @@ unmanagedClasspath in Runtime += baseDirectory.value / "shared"
unmanagedClasspath in Compile += baseDirectory.value / "shared"
testOptions += Tests.Argument(TestFrameworks.JUnit)
lazy val buildNative = taskKey[Unit]("builds native code")
buildNative := {
val res = "make"!;
if (res != 0) throw new RuntimeException("unable to generate shared libraries and native jar bindings")
}
test := {
buildNative.value
(test in Test).value
}
compile := {
buildNative.value
(compile in Compile).value
}
assembly := {
buildNative.value
assembly.value
}