Skip to content

Commit 58cfb23

Browse files
committed
fix: test 2 dist
1 parent 0dc0304 commit 58cfb23

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ matrix:
6565
# After issues are fixed these tests need to be included back by removing them from the "-Dtests.to.exclude" property
6666
# - jdk: "oraclejdk7"
6767
# env: SCALA_VER="2.11" SPARK_VER="2.1.0" HADOOP_VER="2.6" PROFILE="-Pweb-ci -Pscalding -Phelium-dev -Pexamples -Pscala-2.11" BUILD_FLAG="package -Pbuild-distr -DskipRat" TEST_FLAG="verify -Pusing-packaged-distr -DskipRat" MODULES="-pl ${INTERPRETERS}" TEST_PROJECTS="-Dtests.to.exclude=**/ZeppelinSparkClusterTest.java,**/org.apache.zeppelin.spark.*,**/HeliumApplicationFactoryTest.java -DfailIfNoTests=false"
68-
#
68+
6969
# # Test selenium with spark module for 1.6.3
7070
# - jdk: "oraclejdk7"
7171
# env: TEST_SELENIUM="true" SCALA_VER="2.10" SPARK_VER="1.6.3" HADOOP_VER="2.6" PROFILE="-Pweb-ci -Pspark-1.6 -Phadoop-2.6 -Phelium-dev -Pexamples" BUILD_FLAG="package -DskipTests -DskipRat" TEST_FLAG="verify -DskipRat" TEST_PROJECTS="-pl .,zeppelin-interpreter,zeppelin-zengine,zeppelin-server,zeppelin-display,spark-dependencies,spark -Dtest=org.apache.zeppelin.AbstractFunctionalSuite -DfailIfNoTests=false"
@@ -116,8 +116,6 @@ before_install:
116116
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1600x1024x16"
117117
- ./dev/change_scala_version.sh $SCALA_VER
118118
- source ~/.environ
119-
- export DISPLAY=:99.0
120-
- sh -e /etc/init.d/xvfb start &
121119

122120
install:
123121
- echo "mvn $BUILD_FLAG $MODULES $PROFILE -B"
@@ -131,9 +129,8 @@ before_script:
131129
- echo "export SPARK_HOME=`pwd`/spark-$SPARK_VER-bin-hadoop$HADOOP_VER" > conf/zeppelin-env.sh
132130
- echo "export ZEPPELIN_HELIUM_REGISTRY=helium" >> conf/zeppelin-env.sh
133131
- tail conf/zeppelin-env.sh
134-
# - export CHROME_BIN=chromium-browser
135-
- sleep 3
136-
- echo "MAVEN_OPTS='-Xms1024M -Xmx2048M -XX:MaxPermSize=1024m -XX:-UseGCOverheadLimit -Dorg.slf4j.simpleLogger.defaultLogLevel=info'" > ~/.mavenrc
132+
- if [[ -n $TEST_MODULES ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start &; sleep 3; fi
133+
- if [[ -n $TEST_MODULES ]]; then echo "MAVEN_OPTS='-Xms1024M -Xmx2048M -XX:MaxPermSize=1024m -XX:-UseGCOverheadLimit -Dorg.slf4j.simpleLogger.defaultLogLevel=info'" > ~/.mavenrc; fi
137134

138135
script:
139136
- if [[ -n $TEST_MODULES ]]; then export MODULES="${TEST_MODULES}"; fi

zeppelin-web/protractor.conf.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
var baseConfig = {
22
baseUrl: 'http://localhost:8080/',
33
directConnect: true,
4-
// chromeOnly: true,
54
capabilities: {
65
browserName: 'chrome',
76
},
@@ -22,6 +21,7 @@ var baseConfig = {
2221
// waiting for angular app is loaded
2322
browser.ignoreSynchronization = true;
2423
browser.manage().timeouts().pageLoadTimeout(300000);
24+
browser.manage().timeouts().implicitlyWait(5000);
2525

2626
// add reporter to display executed tests in console
2727
var SpecReporter = require('jasmine-spec-reporter').SpecReporter;
@@ -37,10 +37,6 @@ var chromeOptions = {
3737
args: ['--disable-gpu', '--no-sandbox']
3838
}
3939

40-
if (process.env.TRAVIS) {
41-
// chromeOptions.binary = process.env.CHROME_BIN;
42-
}
43-
4440
baseConfig.capabilities.chromeOptions = chromeOptions;
4541

4642
exports.config = baseConfig;

0 commit comments

Comments
 (0)