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
2d166449
Commit
2d166449
authored
Jul 08, 2016
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check tests exit code
parent
1bb64cd2
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 @
2d166449
...
@@ -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