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
No known key found for this signature in database
GPG Key ID: D8826D1B86D051EA
3 changed files with 22 additions and 22 deletions

View File

@ -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
@ -26,7 +45,7 @@ before_deploy:
deploy:
provider: releases
api_key: $GITHUB_TOKEN
api_key: $GITHUB_TOKEN
file_glob: true
file: build/*.tar.gz
skip_cleanup: true

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
}