Skip to content

Commit 0a22b35

Browse files
kimoonkimash211
authored andcommitted
Enable unit tests in Travis CI build (apache-spark-on-k8s#132)
* Configure unit test build while banning flaky tests * Clean up comment
1 parent 452f8f1 commit 0a22b35

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.travis.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,22 @@
2525
sudo: required
2626
dist: trusty
2727

28-
# 2. Choose language and target JDKs for parallel builds.
28+
# 2. Choose language, target JDK and env's for parallel builds.
2929
language: java
3030
jdk:
31-
- oraclejdk7
3231
- oraclejdk8
32+
env: # Used by the install section below.
33+
# Configure the unit test build for spark core and kubernetes modules,
34+
# while excluding some flaky unit tests using a regex pattern.
35+
- PHASE=test \
36+
PROFILES="-Pmesos -Pyarn -Phadoop-2.7 -Pkubernetes" \
37+
MODULES="-pl core,resource-managers/kubernetes/core -am" \
38+
ARGS="-Dsuffixes='^org\.apache\.spark\.(?!rdd\.LocalCheckpointSuite$|deploy\.StandaloneDynamicAllocationSuite$).*'"
39+
# Configure the full build.
40+
- PHASE=install \
41+
PROFILES="-Pmesos -Pyarn -Phadoop-2.7 -Pkubernetes -Pkinesis-asl -Phive -Phive-thriftserver" \
42+
MODULES="" \
43+
ARGS="-T 4 -q -DskipTests"
3344

3445
# 3. Setup cache directory for SBT and Maven.
3546
cache:
@@ -41,11 +52,12 @@ cache:
4152
notifications:
4253
email: false
4354

44-
# 5. Run maven install before running lint-java.
55+
# 5. Run maven build before running lints.
4556
install:
4657
- export MAVEN_SKIP_RC=1
47-
- build/mvn -T 4 -q -DskipTests -Pmesos -Pyarn -Phadoop-2.3 -Pkubernetes -Pkinesis-asl -Phive -Phive-thriftserver install
58+
- build/mvn ${PHASE} ${PROFILES} ${MODULES} ${ARGS}
4859

49-
# 6. Run lint-java.
60+
# 6. Run lints.
5061
script:
5162
- dev/lint-java
63+
- dev/lint-scala

0 commit comments

Comments
 (0)