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
afec3b9b
Commit
afec3b9b
authored
Nov 29, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove script and update nightwatch commands
parent
2247471f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
5 additions
and
68 deletions
+5
-68
script.js
apps/remix-ide-e2e/script.js
+0
-27
script.sh
apps/remix-ide-e2e/script.sh
+0
-24
browser_tests_chrome.sh
apps/remix-ide/ci/browser_tests_chrome.sh
+2
-2
browser_tests_firefox.sh
apps/remix-ide/ci/browser_tests_firefox.sh
+2
-2
browser_tests_run_deploy.sh
apps/remix-ide/ci/browser_tests_run_deploy.sh
+1
-1
package.json
package.json
+0
-0
workspace.json
workspace.json
+0
-12
No files found.
apps/remix-ide-e2e/script.js
deleted
100644 → 0
View file @
2247471f
/* eslint-disable */
const
{
spawn
}
=
require
(
'child_process'
)
const
commands
=
process
.
argv
let
filePath
=
''
,
env
=
''
commands
.
forEach
(
val
=>
{
if
(
val
.
indexOf
(
'--filePath'
)
!==
-
1
)
filePath
=
val
.
split
(
'='
)[
1
]
else
if
(
val
.
indexOf
(
'--env'
)
!==
-
1
)
env
=
val
.
split
(
'='
)[
1
]
})
const
bash
=
spawn
(
'apps/remix-ide-e2e/script.sh'
,
[
env
,
filePath
]);
bash
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
console
.
log
(
data
.
toString
())
})
bash
.
stderr
.
on
(
'data'
,
(
data
)
=>
{
console
.
log
(
data
.
toString
())
})
bash
.
on
(
'exit'
,
(
code
)
=>
{
console
.
log
(
`Process exited with code
${
code
}
`
)
if
(
parseInt
(
code
)
===
1
)
{
throw
new
Error
(
'Failed with error code 1'
)
}
})
\ No newline at end of file
apps/remix-ide-e2e/script.sh
deleted
100755 → 0
View file @
2247471f
#!/bin/bash
TEST_SCRIPT
=
'node_modules/.bin/nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js'
;
if
[
{
$1
}
!=
undefined
]
then
TEST_SCRIPT
=
${
TEST_SCRIPT
}
' --env '
$1
;
else
TEST_SCRIPT
=
${
TEST_SCRIPT
}
' --env chrome'
;
fi
if
[
{
$2
}
!=
undefined
]
then
TEST_SCRIPT
=
${
TEST_SCRIPT
}
' '
$2
;
fi
eval
$TEST_SCRIPT
||
TEST_EXITCODE
=
1
;
echo
$TEST_EXITCODE
if
[
"
$TEST_EXITCODE
"
-eq
"1"
]
then
exit
1
fi
\ No newline at end of file
apps/remix-ide/ci/browser_tests_chrome.sh
View file @
afec3b9b
...
...
@@ -13,11 +13,11 @@ npm run remixd &
sleep
5
np
x nx build remix-ide-
e2e
np
m run build:
e2e
TESTFILES
=
$(
circleci tests glob
"dist/apps/remix-ide-e2e/src/tests/**/*.test.js"
| circleci tests
split
--split-by
=
timings
)
for
TESTFILE
in
$TESTFILES
;
do
npx n
x e2e remix-ide-e2e
--filePath
=
$TESTFILE
--env
=
chrome
||
TEST_EXITCODE
=
1
npx n
ightwatch
--config
dist/apps/remix-ide-e2e/nightwatch.js
$TESTFILE
--env
=
chrome
||
TEST_EXITCODE
=
1
done
echo
"
$TEST_EXITCODE
"
...
...
apps/remix-ide/ci/browser_tests_firefox.sh
View file @
afec3b9b
...
...
@@ -13,11 +13,11 @@ npm run remixd &
sleep
5
np
x nx build remix-ide-
e2e
np
m run build:
e2e
TESTFILES
=
$(
circleci tests glob
"dist/apps/remix-ide-e2e/src/tests/**/*.test.js"
| circleci tests
split
--split-by
=
timings
)
for
TESTFILE
in
$TESTFILES
;
do
npx n
x e2e remix-ide-e2e
--filePath
=
$TESTFILE
--env
=
firefox
||
TEST_EXITCODE
=
1
npx n
ightwatch
--config
dist/apps/remix-ide-e2e/nightwatch.js
$TESTFILE
--env
=
firefox
||
TEST_EXITCODE
=
1
done
echo
"
$TEST_EXITCODE
"
...
...
apps/remix-ide/ci/browser_tests_run_deploy.sh
View file @
afec3b9b
...
...
@@ -11,7 +11,7 @@ npm run serve &
sleep
5
np
x nx build remix-ide-
e2e
np
m run build:
e2e
npm run nightwatch_local_runAndDeploy
||
TEST_EXITCODE
=
1
echo
"
$TEST_EXITCODE
"
...
...
package.json
View file @
afec3b9b
This diff is collapsed.
Click to expand it.
workspace.json
View file @
afec3b9b
...
...
@@ -100,18 +100,6 @@
"sourceRoot"
:
"apps/remix-ide-e2e/src"
,
"projectType"
:
"application"
,
"architect"
:
{
"build"
:
{
"builder"
:
"@nrwl/workspace:run-commands"
,
"options"
:
{
"commands"
:
[
"tsc -p apps/remix-ide-e2e/tsconfig.e2e.json"
]
}
},
"e2e"
:
{
"builder"
:
"@nrwl/workspace:run-commands"
,
"options"
:
{
"commands"
:
[
"node apps/remix-ide-e2e/script.js"
]
}
},
"lint"
:
{
"builder"
:
"@nrwl/linter:lint"
,
"options"
:
{
...
...
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