Add Travis config and script
This commit is contained in:
6
.travis.yml
Normal file
6
.travis.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
sudo: false
|
||||
language: java
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
script:
|
||||
- test/run.sh
|
||||
18
test/run.sh
Executable file
18
test/run.sh
Executable 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
|
||||
Reference in New Issue
Block a user