2014-12-19 18:53:19 -05:00
|
|
|
language: java
|
|
|
|
|
2017-12-12 20:14:44 -05:00
|
|
|
# On 12-12-2017, Travis updated their trusty image, which caused integration tests to fail.
|
|
|
|
# The group: config instructs Travis to use the previous trusty image.
|
|
|
|
# Please see https://github.com/druid-io/druid/pull/5155 for more information.
|
|
|
|
sudo: required
|
2017-09-06 05:51:06 -04:00
|
|
|
dist: trusty
|
2017-12-12 20:14:44 -05:00
|
|
|
group: deprecated-2017Q4
|
2017-07-19 02:19:33 -04:00
|
|
|
|
2014-12-19 18:53:19 -05:00
|
|
|
jdk:
|
|
|
|
- oraclejdk8
|
2015-01-07 18:07:14 -05:00
|
|
|
|
2015-08-07 21:05:25 -04:00
|
|
|
cache:
|
|
|
|
directories:
|
2017-05-20 14:42:44 -04:00
|
|
|
- $HOME/.m2
|
2017-05-31 21:27:34 -04:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2017-06-26 21:51:48 -04:00
|
|
|
# strict compilation
|
2017-05-31 21:27:34 -04:00
|
|
|
- sudo: false
|
2017-11-20 23:27:41 -05:00
|
|
|
env:
|
|
|
|
- NAME="strict compilation"
|
2017-05-31 21:27:34 -04:00
|
|
|
install: true
|
2017-06-26 21:51:48 -04:00
|
|
|
# Strict compilation requires more than 2 GB
|
|
|
|
script: echo "MAVEN_OPTS='-Xmx3000m'" > ~/.mavenrc && mvn clean -Pstrict -pl '!benchmarks' compile test-compile -B
|
|
|
|
|
|
|
|
# processing module test
|
|
|
|
- sudo: false
|
2017-11-20 23:27:41 -05:00
|
|
|
env:
|
|
|
|
- NAME="processing module test"
|
2017-09-06 05:51:06 -04:00
|
|
|
install: echo "MAVEN_OPTS='-Xmx3000m'" > ~/.mavenrc && mvn install -q -ff -DskipTests -B
|
2017-09-12 23:24:45 -04:00
|
|
|
before_script:
|
|
|
|
- unset _JAVA_OPTIONS
|
2017-09-06 05:51:06 -04:00
|
|
|
script: echo "MAVEN_OPTS='-Xmx512m'" > ~/.mavenrc && mvn test -B -Pparallel-test -Dmaven.fork.count=2 -pl processing
|
2017-06-26 21:51:48 -04:00
|
|
|
|
2017-11-20 23:27:41 -05:00
|
|
|
# server module test
|
2017-06-26 21:51:48 -04:00
|
|
|
- sudo: false
|
2017-11-20 23:27:41 -05:00
|
|
|
env:
|
|
|
|
- NAME="server module test"
|
|
|
|
install: echo "MAVEN_OPTS='-Xmx3000m'" > ~/.mavenrc && mvn install -q -ff -DskipTests -B
|
|
|
|
before_script:
|
|
|
|
- unset _JAVA_OPTIONS
|
|
|
|
# Server module test is run without the parallel-test option because it's memory sensitive and often fails with that option.
|
|
|
|
script: echo "MAVEN_OPTS='-Xmx512m'" > ~/.mavenrc && mvn test -B -pl server
|
|
|
|
|
|
|
|
# other modules test
|
|
|
|
- sudo: false
|
|
|
|
env:
|
|
|
|
- NAME="other modules test"
|
2018-03-21 18:36:54 -04:00
|
|
|
- AWS_REGION=us-east-1 # set a aws region for unit tests
|
2017-09-06 05:51:06 -04:00
|
|
|
install: echo "MAVEN_OPTS='-Xmx3000m'" > ~/.mavenrc && mvn install -q -ff -DskipTests -B
|
2017-09-12 23:24:45 -04:00
|
|
|
before_script:
|
|
|
|
- unset _JAVA_OPTIONS
|
2017-11-20 23:27:41 -05:00
|
|
|
script: echo "MAVEN_OPTS='-Xmx512m'" > ~/.mavenrc && mvn test -B -Pparallel-test -Dmaven.fork.count=2 -pl '!processing,!server'
|
2017-06-26 21:51:48 -04:00
|
|
|
|
|
|
|
# run integration tests
|
2017-05-31 21:27:34 -04:00
|
|
|
- sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
env:
|
2017-11-20 23:27:41 -05:00
|
|
|
- NAME="integration test"
|
2017-05-31 21:27:34 -04:00
|
|
|
- DOCKER_IP=172.17.0.1
|
|
|
|
install:
|
|
|
|
# Only errors will be shown with the -q option. This is to avoid generating too many logs which make travis build failed.
|
2017-06-26 21:51:48 -04:00
|
|
|
- mvn install -q -ff -DskipTests -B
|
2017-05-31 21:27:34 -04:00
|
|
|
script:
|
|
|
|
- $TRAVIS_BUILD_DIR/ci/travis_script_integration.sh
|
2017-11-10 17:07:37 -05:00
|
|
|
after_failure:
|
|
|
|
- for v in ~/shared/logs/*.log ; do
|
|
|
|
echo $v logtail ======================== ; tail -100 $v ;
|
|
|
|
done
|
|
|
|
- for v in broker middlemanager overlord router coordinator historical ; do
|
|
|
|
echo $v dmesg ======================== ;
|
|
|
|
docker exec -it druid-$v sh -c 'dmesg | tail -3' ;
|
|
|
|
done
|