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
35aeadd3
Commit
35aeadd3
authored
Jun 28, 2014
by
Dane Springmeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle unbound variable in nvm.sh
parent
5b7e2515
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
17 deletions
+21
-17
build_against_node.sh
scripts/build_against_node.sh
+19
-17
build_against_node_webkit.sh
scripts/build_against_node_webkit.sh
+2
-0
No files found.
scripts/build_against_node.sh
View file @
35aeadd3
...
@@ -2,10 +2,27 @@
...
@@ -2,10 +2,27 @@
set
-u
-e
set
-u
-e
function
publish
()
{
if
test
"
${
COMMIT_MESSAGE
#*
'[publish binary]'
}
"
!=
"
$COMMIT_MESSAGE
"
;
then
node-pre-gyp publish
node-pre-gyp info
node-pre-gyp clean
make clean
# now install from binary
INSTALL_RESULT
=
$(
npm install
--fallback-to-build
=
false
>
/dev/null
)
$?
||
true
# if install returned non zero (errored) then we first unpublish and then call false so travis will bail at this line
if
[[
$INSTALL_RESULT
!=
0
]]
;
then
echo
"returned
$INSTALL_RESULT
"
;
node-pre-gyp unpublish
;
false
;
fi
# If success then we arrive here so lets clean up
node-pre-gyp clean
fi
}
if
[[
!
-d
../.nvm
]]
;
then
if
[[
!
-d
../.nvm
]]
;
then
git clone https://github.com/creationix/nvm.git ../.nvm
git clone https://github.com/creationix/nvm.git ../.nvm
fi
fi
set
+u
source
../.nvm/nvm.sh
source
../.nvm/nvm.sh
set
-u
nvm install
$NODE_VERSION
nvm install
$NODE_VERSION
nvm use
$NODE_VERSION
nvm use
$NODE_VERSION
node
--version
node
--version
...
@@ -16,19 +33,7 @@ npm install --build-from-source
...
@@ -16,19 +33,7 @@ npm install --build-from-source
node-pre-gyp package testpackage
node-pre-gyp package testpackage
npm
test
npm
test
PUBLISH_BINARY
=
false
publish
if
test
"
${
COMMIT_MESSAGE
#*
'[publish binary]'
}
"
!=
"
$COMMIT_MESSAGE
"
;
then
node-pre-gyp publish
node-pre-gyp info
node-pre-gyp clean
make clean
# now install from binary
INSTALL_RESULT
=
$(
npm install
--fallback-to-build
=
false
>
/dev/null
)
$?
||
true
# if install returned non zero (errored) then we first unpublish and then call false so travis will bail at this line
if
[[
$INSTALL_RESULT
!=
0
]]
;
then
echo
"returned
$INSTALL_RESULT
"
;
node-pre-gyp unpublish
;
false
;
fi
# If success then we arrive here so lets clean up
node-pre-gyp clean
fi
# now test building against shared sqlite
# now test building against shared sqlite
if
[[
$(
uname
-s
)
==
'Darwin'
]]
;
then
if
[[
$(
uname
-s
)
==
'Darwin'
]]
;
then
...
@@ -55,11 +60,8 @@ if [[ $(uname -s) == 'Linux' ]]; then
...
@@ -55,11 +60,8 @@ if [[ $(uname -s) == 'Linux' ]]; then
# install 32 bit compiler toolchain and X11
# install 32 bit compiler toolchain and X11
# test source compile in 32 bit mode with internal libsqlite3
# test source compile in 32 bit mode with internal libsqlite3
CC
=
gcc-4.6
CXX
=
g++-4.6 npm install
--build-from-source
CC
=
gcc-4.6
CXX
=
g++-4.6 npm install
--build-from-source
npm install
--build-from-source
npm
test
npm
test
if
test
"
${
COMMIT_MESSAGE
#*
'[publish binary]'
}
"
!=
"
$COMMIT_MESSAGE
"
;
then
publish
node-pre-gyp package publish
fi
make clean
make clean
# test source compile in 32 bit mode against external libsqlite3
# test source compile in 32 bit mode against external libsqlite3
sudo
apt-get
-y
install libsqlite3-dev:i386
sudo
apt-get
-y
install libsqlite3-dev:i386
...
...
scripts/build_against_node_webkit.sh
View file @
35aeadd3
...
@@ -5,7 +5,9 @@ set -u -e
...
@@ -5,7 +5,9 @@ set -u -e
if
[[
!
-d
../.nvm
]]
;
then
if
[[
!
-d
../.nvm
]]
;
then
git clone https://github.com/creationix/nvm.git ../.nvm
git clone https://github.com/creationix/nvm.git ../.nvm
fi
fi
set
+u
source
../.nvm/nvm.sh
source
../.nvm/nvm.sh
set
-u
nvm install 0.10
nvm install 0.10
nvm use 0.10
nvm use 0.10
node
--version
node
--version
...
...
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