Skip to content

Commit d1f7046

Browse files
author
nfrasser
committed
Alternate test script so complete suite is not always run
The CI SauceLabs tests should only run once a branch has been merged.
1 parent 2542d02 commit d1f7046

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ env:
77
global:
88
- secure: LhH+mMqOktTe6cIt97PGKBfgUjZM8vRd0qddyg61FSxg7a3WrHQoHE8WdRioJ9+DDzpu/NSTsHEUFUpGN+kSRw1UY4tsNLH6HoBQnqrNN4tVOeefudJpdeteOKZrJ8r8TaA/eO7sAgXO2T+RLJ8+qTbhx8FVZtLaCAgkrS0w9Qk=
99
- secure: Okwm1aAR3oo09AhHDsjFSq1UGlIUtWYYvYeoolJScC/UVFGMiK9oC4fzRtUHv3kXcnshDlcVDrr/Q5JL9Qx6E+tosPJp+tioaqE8X4IDbVk7PPs/ToOOEmWnGvxkgmfCGSDuneG8RVhILkhls3fbm0z+rRWlvJkjefeA96T6zps=
10-
script:
11-
- npm test
12-
- npm run test-ci
10+
script: ./test/run
1311
after_script: npm run coverage

test/run.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
cd $(dirname "${BASH_SOURCE[0]}../")
2+
3+
if [[ `echo $TRAVIS_BRANCH` = "master" ]]; then
4+
# Run basic and SauceLabs tests
5+
echo "Running complete test suite..."
6+
npm test || exit 1
7+
npm run test-ci || exit 1
8+
else
9+
# Run basic tests
10+
echo "Running basic tests..."
11+
npm test || exit 1
12+
fi

0 commit comments

Comments
 (0)