File tree Expand file tree Collapse file tree 7 files changed +754
-143
lines changed Expand file tree Collapse file tree 7 files changed +754
-143
lines changed Original file line number Diff line number Diff line change 1010
1111env :
1212 matrix :
13- - TRAVIS_NODE_VERSION="6"
13+ # - TRAVIS_NODE_VERSION="6"
1414 # - TRAVIS_NODE_VERSION="6" ARCH="x86"
15- - TRAVIS_NODE_VERSION="7"
15+ # - TRAVIS_NODE_VERSION="7"
1616 # - TRAVIS_NODE_VERSION="7" ARCH="x86"
1717 # - TRAVIS_ELECTRON_VERSION="1.4.14" TRAVIS_NODE_VERSION="6"
1818 - TRAVIS_NODE_VERSION="8"
Original file line number Diff line number Diff line change 1111 node-pre-gyp clean
1212
1313packet :
14- npm install mocha
14+ npm install mocha@7
1515 npm install assert
1616 npm install should
1717 npm install node-pre-gyp
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ $npm install node-occ
6262# installing nodejs and gyp utility to build extensions
6363sudo apt-get install nodejs npm
6464sudo npm install node-pre-gyp -g
65- sudo npm install mocha -g
65+ sudo npm install mocha@7 -g
6666
6767# installing cmake
6868sudo apt-get install cmake cmake-curses-gui g++ build-essential libtbb2
Original file line number Diff line number Diff line change @@ -21,23 +21,20 @@ environment:
2121 VisualStudioVersion : " 12"
2222 matrix :
2323
24- # - nodejs_version: 6
25- # platform: x86
26-
27- - nodejs_version : 6
28- platform : x64
29-
30- # - nodejs_version: 7
31- # platform: x86
32-
33- - nodejs_version : 7
24+ - electron_version : " 7.3.2"
25+ nodejs_version : 12
3426 platform : x64
27+
28+ # - electron_version: "8.5.0" // not working yet =< GetBackingStore missing
29+ # nodejs_version: 12
30+ # platform: x64
3531
32+ # - electron_version: "9.2.0"
33+ # nodejs_version: 12
34+ # platform: x64
35+
3636 - nodejs_version : 8
3737 platform : x64
38-
39- - nodejs_version : 9
40- platform : x64
4138
4239 - nodejs_version : 10
4340 platform : x64
@@ -64,17 +61,7 @@ environment:
6461 # nodejs_version: 6
6562 # platform: x64
6663
67- - electron_version : " 7.3.2"
68- nodejs_version : 12
69- platform : x64
70-
71- - electron_version : " 8.5.0"
72- nodejs_version : 12
73- platform : x64
7464
75- - electron_version : " 9.2.0"
76- nodejs_version : 12
77- platform : x64
7865
7966# clone directory
8067clone_folder : c:\projects\node-occ
Original file line number Diff line number Diff line change 7272
7373
7474IF NOT DEFINED electron_version (
75- SET electron_version = 1.4.14
75+ SET electron_version = 9.2.0
7676)
7777
7878SET npm_config_target = %electron_version%
79- SET npm_config_disturl = https://atom.io/download/atom-shell
79+ SET npm_config_arch = %PLATFORM%
80+ SET npm_config_target_arch = %PLATFORM%
81+ SET npm_config_disturl = https://electronjs.org/headers
8082SET npm_config_runtime = electron
81-
83+ SET npm_config_build_from_source = true
8284ECHO Install electron and electron-mocha
8385ECHO " PLATFORM =" %PLATFORM%
8486ECHO " npm_config_arch =" %npm_config_arch%
8587ECHO " npm_config_target =" %npm_config_target%
8688ECHO " npm_config_runtime =" %npm_config_runtime%
87-
89+ SET HOME = %APPDATA% /.electron-gyp
8890CALL npm install electron@ %electron_version% -g
89- CALL npm install electron-mocha
91+ CALL npm install electron-mocha@ %electron_version%
9092CALL npm install --build-from-source --msvc_version=%VSVER% --target_arch=%npm_config_arch%
9193if NOT '%ERRORLEVEL% '== '0' goto handle_npm_install_error
9294
You can’t perform that action at this time.
0 commit comments