mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 16:40:08 -03:00
travis configuration
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
This commit is contained in:
parent
d8fc4fe92f
commit
f53abe6bc2
19
.travis.yml
19
.travis.yml
@ -1,4 +1,5 @@
|
||||
language: go
|
||||
sudo: required
|
||||
|
||||
go:
|
||||
- 1.8
|
||||
@ -7,6 +8,24 @@ go:
|
||||
matrix:
|
||||
allow_failures:
|
||||
- go: tip
|
||||
include:
|
||||
- language: scala
|
||||
jdk: oraclejdk8
|
||||
|
||||
install:
|
||||
- GIMME_OUTPUT=$(gimme 1.8 | tee -a $HOME/.bashrc) && eval "$GIMME_OUTPUT"
|
||||
- export GOPATH=$HOME/gopath
|
||||
- mkdir -p $GOPATH/src/gopkg.in/src-d/enry.v1
|
||||
- rsync -az ${TRAVIS_BUILD_DIR}/ $GOPATH/src/gopkg.in/src-d/enry.v1
|
||||
- go get -v gopkg.in/src-d/enry.v1/...
|
||||
- sudo apt-get install maven
|
||||
|
||||
before_script:
|
||||
- cd java
|
||||
- make
|
||||
|
||||
script:
|
||||
- make test
|
||||
|
||||
install:
|
||||
- rm -rf $GOPATH/src/gopkg.in/src-d
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user