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
48622cb1
Commit
48622cb1
authored
May 04, 2015
by
Dane Springmeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid nvm meltdown after set -eu
parent
3799e113
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
build_against_node.sh
scripts/build_against_node.sh
+8
-10
build_against_node_webkit.sh
scripts/build_against_node_webkit.sh
+2
-3
No files found.
scripts/build_against_node.sh
View file @
48622cb1
#!/usr/bin/env bash
#!/usr/bin/env bash
set
-u
-e
-x
if
[[
!
-d
../.nvm
]]
;
then
git clone https://github.com/creationix/nvm.git ../.nvm
fi
source
../.nvm/nvm.sh
nvm install
$NODE_VERSION
nvm use
$NODE_VERSION
set
-u
-e
function
publish
()
{
function
publish
()
{
if
test
"
${
COMMIT_MESSAGE
#*
'[publish binary]'
}
"
!=
"
$COMMIT_MESSAGE
"
;
then
if
test
"
${
COMMIT_MESSAGE
#*
'[publish binary]'
}
"
!=
"
$COMMIT_MESSAGE
"
;
then
...
@@ -17,15 +24,6 @@ function publish() {
...
@@ -17,15 +24,6 @@ function publish() {
fi
fi
}
}
if
[[
!
-d
../.nvm
]]
;
then
git clone https://github.com/creationix/nvm.git ../.nvm
fi
set
+u
source
../.nvm/nvm.sh
nvm install
$NODE_VERSION
nvm use
$NODE_VERSION
set
-u
# test installing from source
# test installing from source
npm install
--build-from-source
npm install
--build-from-source
node-pre-gyp package testpackage
node-pre-gyp package testpackage
...
...
scripts/build_against_node_webkit.sh
View file @
48622cb1
#!/usr/bin/env bash
#!/usr/bin/env bash
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
nvm install 0.10
nvm install 0.10
set
-u
set
-u
-e
npm install nw-gyp
-g
npm install nw-gyp
-g
...
...
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