Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
d4226f09
Commit
d4226f09
authored
Jul 08, 2016
by
yann300
Committed by
GitHub
Jul 08, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #51 from yann300/browserTests
check tests exit code
parents
7fad9dc8
2d166449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
browser_tests.sh
ci/browser_tests.sh
+12
-4
No files found.
ci/browser_tests.sh
View file @
d4226f09
...
@@ -18,18 +18,26 @@ while [ ! -f $SAUCECONNECT_READYFILE ]; do
...
@@ -18,18 +18,26 @@ while [ ! -f $SAUCECONNECT_READYFILE ]; do
sleep
.5
sleep
.5
done
done
function
updateTestExitCode
()
{
if
[
$?
-eq
1
]
then
TEST_EXITCODE
=
1
fi
}
npm run nightwatch_remote_firefox
npm run nightwatch_remote_firefox
updateTestExitCode
npm run nightwatch_remote_chrome
npm run nightwatch_remote_chrome
updateTestExitCode
npm run nightwatch_remote_safari
npm run nightwatch_remote_safari
updateTestExitCode
npm run nightwatch_remote_ie
npm run nightwatch_remote_ie
updateTestExitCode
if
[
$?
-eq
1
]
then
TEST_EXITCODE
=
1
fi
node ci/sauceDisconnect.js
$SAUCECONNECT_USERNAME
$SAUCECONNECT_ACCESSKEY
$SAUCECONNECT_JOBIDENTIFIER
node ci/sauceDisconnect.js
$SAUCECONNECT_USERNAME
$SAUCECONNECT_ACCESSKEY
$SAUCECONNECT_JOBIDENTIFIER
echo
$TEST_EXITCODE
if
[
$TEST_EXITCODE
-eq
1
]
if
[
$TEST_EXITCODE
-eq
1
]
then
then
exit
1
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment