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
325d7cdb
Commit
325d7cdb
authored
Mar 20, 2017
by
tsufeki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run tests for electron on Appveyor.
parent
80456900
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
appveyor.yml
appveyor.yml
+4
-1
build-appveyor.bat
scripts/build-appveyor.bat
+16
-1
No files found.
appveyor.yml
View file @
325d7cdb
...
...
@@ -57,10 +57,13 @@ environment:
platform
:
x64
msvs_toolset
:
14
TOOLSET_ARGS
:
--dist-url=https://s3.amazonaws.com/mapbox/node-cpp11 --toolset=v140
# electron
-
nodejs_version
:
6
platform
:
x64
msvs_toolset
:
12
TOOLSET_ARGS
:
--runtime=electron --target=1.6.0 --dist-url=https://atom.io/download/electron
NODE_RUNTIME
:
electron
NODE_RUNTIME_VERSION
:
1.6.3
TOOLSET_ARGS
:
--dist-url=https://atom.io/download/electron
os
:
Visual Studio 2015
...
...
scripts/build-appveyor.bat
View file @
325d7cdb
...
...
@@ -7,6 +7,8 @@ ECHO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET PATH=%CD%;%PATH%
SET msvs_version=2013
IF "%msvs_toolset%"=="14" SET msvs_version=2015
IF NOT "%NODE_RUNTIME%"=="" SET TOOLSET_ARGS="%TOOLSET_ARGS% --runtime=%NODE_RUNTIME%"
IF NOT "%NODE_RUNTIME_VERSION%"=="" SET TOOLSET_ARGS="%TOOLSET_ARGS% --target=%NODE_RUNTIME_VERSION%"
ECHO APPVEYOR^: %APPVEYOR%
ECHO nodejs_version^: %nodejs_version%
...
...
@@ -124,7 +126,7 @@ IF %ERRORLEVEL% NEQ 0 GOTO ERROR
CALL npm install --build-from-source --msvs_version=%msvs_version% %TOOLSET_ARGS% --loglevel=http
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
FOR /F "tokens=*" %%i in ('CALL node_modules\.bin\node-pre-gyp reveal module --silent') DO SET MODULE=%%i
FOR /F "tokens=*" %%i in ('CALL node_modules\.bin\node-pre-gyp reveal module
%TOOLSET_ARGS%
--silent') DO SET MODULE=%%i
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
FOR /F "tokens=*" %%i in ('node -e "console.log(process.execPath)"') DO SET NODE_EXE=%%i
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
...
...
@@ -135,6 +137,8 @@ dumpbin /DEPENDENTS "%MODULE%"
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
IF "%NODE_RUNTIME%"=="electron" GOTO CHECK_ELECTRON_TEST_ERRORLEVEL
::skipping check for errorlevel npm test result when using io.js
::@springmeyer: how to proceed?
IF NOT "%nodejs_version%"=="1.8.1" IF NOT "%nodejs_version%"=="2.0.0" GOTO CHECK_NPM_TEST_ERRORLEVEL
...
...
@@ -152,6 +156,17 @@ ECHO ==========================================
GOTO NPM_TEST_FINISHED
:CHECK_ELECTRON_TEST_ERRORLEVEL
ECHO installing electron
CALL npm install -g "electron@%NODE_RUNTIME_VERSION%"
ECHO installing electron-mocha
CALL npm install -g electron-mocha
ECHO calling electron-mocha
CALL electron-mocha -R spec --timeout 480000
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
GOTO NPM_TEST_FINISHED
:CHECK_NPM_TEST_ERRORLEVEL
ECHO calling npm test
CALL npm test
...
...
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