Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,30 @@ cache:

matrix:
include:
# strict compilation
- sudo: false
install: true
script:
# The script execution consists of 4 steps:
# 1) Increase the jvm max heap size. Strict compilation in 2) requires more than 2 GB.
# 2) Strict compilation using error-prone
# 3) Reset the maven options. Parallel testing in 4) launches 2 processes, each requires 1 GB of memory. Increasing the maximum memory may cause OutOfMemory error because the instance of Travis has 4 GB of memory space.
# 4) Parallel unit testing
# Using && instead of independent script steps to make Travis build fail faster, if each step is not successful
- echo "MAVEN_OPTS='-Xmx3000m'" > ~/.mavenrc && mvn clean -Pstrict -pl '!benchmarks' compile test-compile -B && rm ~/.mavenrc && mvn test -B -Pparallel-test -Dmaven.fork.count=2
# 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
install: mvn install -q -ff -DskipTests -B
script: mvn test -B -Pparallel-test -Dmaven.fork.count=2 -pl processing

# non-processing modules test
- sudo: false
install: mvn install -q -ff -DskipTests -B
script: mvn test -B -Pparallel-test -Dmaven.fork.count=2 -pl '!processing'

# run integration tests
- sudo: required
services:
- docker
env:
- 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.
- mvn clean install -q -ff -DskipTests -B
- mvn install -q -ff -DskipTests -B
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove clean?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every build on travis initializes the project directory by cloning druid's git repository, and thus there will be nothing to be cleaned here.

script:
- $TRAVIS_BUILD_DIR/ci/travis_script_integration.sh