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
e94d198f
Commit
e94d198f
authored
Jun 16, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set test exit code
parent
32976261
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
browser_tests.sh
apps/remix-ide/ci/browser_tests.sh
+1
-2
browser_tests_firefox.sh
ci/browser_tests_firefox.sh
+33
-0
No files found.
apps/remix-ide/ci/browser_tests.sh
View file @
e94d198f
...
...
@@ -22,9 +22,8 @@ setupRemixd
sleep
5
TESTFILES
=
$(
circleci tests glob
"./test-browser/tests/**/*.test.js"
| circleci tests
split
--split-by
=
timings
)
ls
for
TESTFILE
in
$TESTFILES
;
do
./node_modules/.bin/nightwatch
--config
nightwatch.js
--env
chrome
$TESTFILE
||
exit
1
;
./node_modules/.bin/nightwatch
--config
nightwatch.js
--env
chrome
$TESTFILE
||
TEST_EXITCODE
=
1
done
echo
"
$TEST_EXITCODE
"
...
...
ci/browser_tests_firefox.sh
0 → 100755
View file @
e94d198f
#!/usr/bin/env bash
set
-e
setupRemixd
()
{
mkdir
remixdSharedfolder
cd
contracts
echo
'sharing folder: '
echo
$PWD
./../node_modules/remixd/bin/remixd
-s
$PWD
--remix-ide
http://127.0.0.1:8080 &
cd
..
}
BUILD_ID
=
${
CIRCLE_BUILD_NUM
:-${
TRAVIS_JOB_NUMBER
}}
echo
"
$BUILD_ID
"
TEST_EXITCODE
=
0
npm run ganache-cli &
npm run serve &
setupRemixd
sleep
5
TESTFILES
=
$(
circleci tests glob
"./test-browser/tests/**/*.test.js"
| circleci tests
split
--split-by
=
timings
)
for
TESTFILE
in
$TESTFILES
;
do
./node_modules/.bin/nightwatch
--config
nightwatch.js
--env
firefox
$TESTFILE
||
TEST_EXITCODE
=
1
done
echo
"
$TEST_EXITCODE
"
if
[
"
$TEST_EXITCODE
"
-eq
1
]
then
exit
1
fi
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