Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.
Closed
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
38 changes: 31 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@
sudo: required
dist: trusty

# 2. Choose language and target JDKs for parallel builds.
# 2. Choose language, target JDKs, and tests for parallel builds
language: java
jdk:
- oraclejdk7
- oraclejdk8
matrix:
include:
- jdk: oraclejdk7
env: TEST_TO_RUN=lint-java
- jdk: oraclejdk8
env: TEST_TO_RUN=lint-scala
- jdk: oraclejdk8
env: TEST_TO_RUN=kubernetes-integration
install: true # skips the install step

# 3. Setup cache directory for SBT and Maven.
cache:
Expand All @@ -41,11 +47,29 @@ cache:
notifications:
email: false

# 5. Run maven install before running lint-java.
# 5. Run maven install before running lint.
install:
- export MAVEN_SKIP_RC=1
- build/mvn -T 4 -q -DskipTests -Pmesos -Pyarn -Phadoop-2.3 -Pkubernetes -Pkinesis-asl -Phive -Phive-thriftserver install

# 6. Run lint-java.
# 6. Run test
script:
- dev/lint-java
- if [[ $TEST_TO_RUN == "lint-java" ]] ; then
dev/lint-java;
else
echo "lint-java SKIPPED";
fi
- if [[ $TEST_TO_RUN == "lint-scala" ]] ; then
dev/lint-scala;
else
echo "lint-scala SKIPPED";
fi
- |
if [[ $TEST_TO_RUN == "kubernetes-integration" ]]; then
export MAVEN_SKIP_RC=true;
build/mvn -B integration-test -Pkubernetes -Pkubernetes-integration-tests \
-pl resource-managers/kubernetes/integration-tests -am -Dtest=none \
-DwildcardSuites=org.apache.spark.deploy.kubernetes.integrationtest.KubernetesSuite ;
else
echo "kubernetes-integration SKIPPED";
fi