Add Travis config and script

This commit is contained in:
Sebastien Deleuze
2018-05-11 14:26:11 +02:00
parent 829b45e50c
commit 94ffc574d0
2 changed files with 24 additions and 0 deletions

6
.travis.yml Normal file
View File

@@ -0,0 +1,6 @@
sudo: false
language: java
jdk:
- oraclejdk8
script:
- test/run.sh

18
test/run.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
cd $(dirname $0)
cd ..
./mvnw clean package
ret=$?
if [ $ret -ne 0 ]; then
exit $ret
fi
rm -rf target
./gradlew build
ret=$?
if [ $ret -ne 0 ]; then
exit $ret
fi
rm -rf build