mirror of https://github.com/grpc/grpc-node.git
commit
65f7b72153
21
.travis.yml
21
.travis.yml
|
|
@ -1,21 +0,0 @@
|
||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- "4"
|
|
||||||
- "5"
|
|
||||||
- "6"
|
|
||||||
- "7"
|
|
||||||
- "8"
|
|
||||||
- "node"
|
|
||||||
env:
|
|
||||||
- CXX=g++-4.8
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- g++-4.8
|
|
||||||
install:
|
|
||||||
- npm install
|
|
||||||
- gulp setup
|
|
||||||
script:
|
|
||||||
- gulp native.test
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash": "^4.17.5",
|
"lodash": "^4.17.5",
|
||||||
"nan": "^2.0.0",
|
"nan": "^2.0.0",
|
||||||
"node-pre-gyp": "^0.10.0",
|
"node-pre-gyp": "^0.12.0",
|
||||||
"protobufjs": "^5.0.3"
|
"protobufjs": "^5.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash": "^4.17.5",
|
"lodash": "^4.17.5",
|
||||||
"nan": "^2.0.0",
|
"nan": "^2.0.0",
|
||||||
"node-pre-gyp": "^0.10.0",
|
"node-pre-gyp": "^0.12.0",
|
||||||
"protobufjs": "^5.0.3"
|
"protobufjs": "^5.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
set arch_list=ia32 x64
|
set arch_list=ia32 x64
|
||||||
|
|
||||||
set node_versions=4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0
|
set node_versions=4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0 11.0.0
|
||||||
|
|
||||||
set electron_versions=1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 2.0.0 3.0.0
|
set electron_versions=1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 2.0.0 3.0.0
|
||||||
|
|
||||||
|
|
@ -38,12 +38,14 @@ for %%a in (%arch_list%) do (
|
||||||
call .\node_modules\.bin\node-pre-gyp.cmd build package --target=%%v --target_arch=%%a || goto :error
|
call .\node_modules\.bin\node-pre-gyp.cmd build package --target=%%v --target_arch=%%a || goto :error
|
||||||
|
|
||||||
xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error
|
xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error
|
||||||
|
rmdir build /S /Q
|
||||||
)
|
)
|
||||||
|
|
||||||
for %%v in (%electron_versions%) do (
|
for %%v in (%electron_versions%) do (
|
||||||
cmd /V /C "set "HOME=%USERPROFILE%\electron-gyp" && call .\node_modules\.bin\node-pre-gyp.cmd configure rebuild package --runtime=electron --target=%%v --target_arch=%%a --disturl=https://atom.io/download/electron" || goto :error
|
cmd /V /C "set "HOME=%USERPROFILE%\electron-gyp" && call .\node_modules\.bin\node-pre-gyp.cmd configure rebuild package --runtime=electron --target=%%v --target_arch=%%a --disturl=https://atom.io/download/electron" || goto :error
|
||||||
|
|
||||||
xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error
|
xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error
|
||||||
|
rmdir build /S /Q
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
arch_list=( ia32 x64 )
|
arch_list=( ia32 x64 )
|
||||||
node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0 )
|
node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0 11.0.0 )
|
||||||
electron_versions=( 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 2.0.0 3.0.0 )
|
electron_versions=( 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 2.0.0 3.0.0 )
|
||||||
|
|
||||||
while true ; do
|
while true ; do
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ mkdir -p "${ARTIFACTS_OUT}"
|
||||||
|
|
||||||
npm update
|
npm update
|
||||||
|
|
||||||
node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0 )
|
node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0 11.0.0 )
|
||||||
|
|
||||||
for version in ${node_versions[@]}
|
for version in ${node_versions[@]}
|
||||||
do
|
do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue