Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
9a0c292d
Commit
9a0c292d
authored
Apr 27, 2019
by
bruce-one
Committed by
Kewde
Apr 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mocha 8.0.0 does not support Node version < 6
parent
2bd051da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
build-appveyor.bat
scripts/build-appveyor.bat
+2
-1
build_against_electron.sh
scripts/build_against_electron.sh
+4
-0
No files found.
scripts/build-appveyor.bat
View file @
9a0c292d
...
@@ -106,7 +106,8 @@ GOTO NPM_TEST_FINISHED
...
@@ -106,7 +106,8 @@ GOTO NPM_TEST_FINISHED
ECHO installing electron
ECHO installing electron
CALL npm install -g "electron@%NODE_RUNTIME_VERSION%"
CALL npm install -g "electron@%NODE_RUNTIME_VERSION%"
ECHO installing electron-mocha
ECHO installing electron-mocha
CALL npm install -g electron-mocha
IF "%nodejs_version%" LEQ 6 CALL npm install -g "electron-mocha@7"
IF "%nodejs_version%" GTR 6 CALL npm install -g "electron-mocha"
ECHO preparing tests
ECHO preparing tests
CALL electron "test/support/createdb-electron.js"
CALL electron "test/support/createdb-electron.js"
DEL "test\support\createdb-electron.js"
DEL "test\support\createdb-electron.js"
...
...
scripts/build_against_electron.sh
View file @
9a0c292d
...
@@ -18,7 +18,11 @@ function publish() {
...
@@ -18,7 +18,11 @@ function publish() {
function
electron_pretest
()
{
function
electron_pretest
()
{
npm install
-g
electron@
${
ELECTRON_VERSION
}
npm install
-g
electron@
${
ELECTRON_VERSION
}
if
[
"
$NODE_VERSION
"
-le
6
]
;
then
npm install
-g
electron-mocha@7
else
npm install
-g
electron-mocha
npm install
-g
electron-mocha
fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"osx"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"osx"
]
;
then
(
sudo
Xvfb :99
-ac
-screen
0 1024x768x8
;
echo
ok
)
&
(
sudo
Xvfb :99
-ac
-screen
0 1024x768x8
;
echo
ok
)
&
else
else
...
...
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