Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c9f18d0

Browse files
committed
WIP: try to run both jquery and non-jquery E2E tests on Travis
1 parent 9e68bab commit c9f18d0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

scripts/travis/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ if [ $JOB = "unit" ]; then
1111
grunt tests:docs --browsers SL_Chrome,SL_Safari,SL_Firefox,SL_IE_9,SL_IE_10,SL_IE_11 --reporters dots
1212
grunt test:travis-protractor-docs --specs "docs/app/e2e/**/*.scenario.js"
1313
elif [ $JOB = "e2e" ]; then
14+
if [ $TEST_TARGET = "jquery" ]; then
15+
export USE_JQUERY=1
16+
fi
17+
18+
grunt test:travis-e2e
19+
1420
export TARGET_SPECS="build/docs/ptore2e/**/default_test.js"
1521
if [ $TEST_TARGET = "jquery" ]; then
1622
TARGET_SPECS="build/docs/ptore2e/**/jquery_test.js"

test/e2e/tests/helpers/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ var helper = {
1010
fixture += '/';
1111
}
1212

13+
if (process.env.USE_JQUERY) {
14+
fixture += '?jquery';
15+
}
16+
1317
browser.get('/e2e/fixtures/' + fixture);
1418
return helper;
1519
}

0 commit comments

Comments
 (0)