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
99e45f81
Commit
99e45f81
authored
Sep 08, 2015
by
Dane Springmeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt to get sudo:false working
parent
5a2939d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
51 deletions
+81
-51
.travis.yml
.travis.yml
+78
-30
build_against_node.sh
scripts/build_against_node.sh
+3
-21
No files found.
.travis.yml
View file @
99e45f81
sudo
:
false
language
:
cpp
git
:
depth
:
10
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
-
llvm-toolchain-precise-3.5
packages
:
-
g++-4.8
# http://docs.travis-ci.com/user/multi-os/
os
:
-
linux
-
osx
-
clang-3.5
# don't re-build for tags so that [publish binary] is not re-run
# https://github.com/travis-ci/travis-ci/issues/1532
...
...
@@ -18,36 +19,82 @@ branches:
except
:
-
/^v[0-9]/
matrix
:
include
:
# Linux
-
os
:
linux
compiler
:
clang
env
:
NODE_VERSION="3.1.0" PUBLISHABLE=true
addons
:
apt
:
sources
:
[
'
ubuntu-toolchain-r-test'
,
'
llvm-toolchain-precise-3.5'
,
'
gcc-multilib'
,
'
g++-multilib'
,
'
libsqlite3-dev:i386'
]
packages
:
[
'
clang-3.5'
]
-
os
:
linux
compiler
:
clang
env
:
NODE_VERSION="2.4.0" PUBLISHABLE=true
addons
:
apt
:
sources
:
[
'
ubuntu-toolchain-r-test'
,
'
llvm-toolchain-precise-3.5'
,
'
gcc-multilib'
,
'
g++-multilib'
,
'
libsqlite3-dev:i386'
]
packages
:
[
'
clang-3.5'
]
-
os
:
linux
compiler
:
clang
env
:
NODE_VERSION="1.8.4" PUBLISHABLE=true
addons
:
apt
:
sources
:
[
'
ubuntu-toolchain-r-test'
,
'
llvm-toolchain-precise-3.5'
,
'
gcc-multilib'
,
'
g++-multilib'
,
'
libsqlite3-dev:i386'
]
packages
:
[
'
clang-3.5'
]
-
os
:
linux
compiler
:
clang
env
:
NODE_VERSION="0.12.7" PUBLISHABLE=true
addons
:
apt
:
sources
:
[
'
ubuntu-toolchain-r-test'
,
'
llvm-toolchain-precise-3.5'
,
'
gcc-multilib'
,
'
g++-multilib'
,
'
libsqlite3-dev:i386'
]
packages
:
[
'
clang-3.5'
]
-
os
:
linux
compiler
:
clang
env
:
NODE_VERSION="0.10.40" PUBLISHABLE=true
addons
:
apt
:
sources
:
[
'
ubuntu-toolchain-r-test'
,
'
llvm-toolchain-precise-3.5'
,
'
gcc-multilib'
,
'
g++-multilib'
,
'
libsqlite3-dev:i386'
]
packages
:
[
'
clang-3.5'
]
# test building against external sqlite
-
os
:
linux
compiler
:
clang
env
:
NODE_VERSION="0.10.40" EXTERNAL_SQLITE=true
addons
:
apt
:
sources
:
[
'
ubuntu-toolchain-r-test'
,
'
llvm-toolchain-precise-3.5'
,
'
gcc-multilib'
,
'
g++-multilib'
,
'
libsqlite3-dev:i386'
]
packages
:
[
'
clang-3.5'
,
'
libsqlite3-dev'
]
# OS X
-
os
:
osx
compiler
:
clang
env
:
NODE_VERSION="3.1.0"
# node abi 45
-
os
:
osx
compiler
:
clang
env
:
NODE_VERSION="2.4.0"
# node abi 44
-
os
:
osx
compiler
:
clang
env
:
NODE_VERSION="1.8.4"
# node abi 43
-
os
:
osx
compiler
:
clang
env
:
NODE_VERSION="0.12.7"
# node abi 14
-
os
:
osx
compiler
:
clang
env
:
NODE_VERSION="0.10.40"
# node abi 11
env
:
matrix
:
-
NODE_VERSION="0.10.40"
# ABI 11
-
NODE_VERSION="0.12.7"
# ABI 14
-
NODE_VERSION="iojs-1.8.4"
# ABI 43
-
NODE_VERSION="iojs-2.3.4"
# ABI 44
-
NODE_VERSION="iojs-3.1.0"
# ABI 45
-
NODE_WEBKIT="0.8.6" TARGET_ARCH="ia32"
-
NODE_WEBKIT="0.8.6" TARGET_ARCH="x64"
-
NODE_WEBKIT="0.10.5" TARGET_ARCH="ia32"
-
NODE_WEBKIT="0.10.5" TARGET_ARCH="x64"
global
:
-
JOBS
:
"
8"
-
secure
:
PifMOSnn+mWR1RUptXse+fLvWiTrzg0R/mazO7RWhXHWBKv0uAJ/qV3dI0GIRBLtjG10Iy+tT5RNh1TIbBzB9Y67wMcGvylUPG1+3EOKoBMEPnOD9AgCEQw4SOXfGPx0cq2N6ueSKieCgu1yKN9Wq7XCbE+zTk/DiRNIdLirVoo=
-
secure
:
cc4esJY1vPXL31IeumAJoKWDDO2BTGFiltwfO1jbTbiV7QT911QUjTUasxXIVpOaHNCpxSTyevPwwTWfzt2EtF92Lli+qhQ2bbzMiDSBZstSrHdAe62Ai2M1oYYUwk/0cABB/2nO9uRyYwITCxpTSNzZBrYhn3C29WqBhPeVDmM=
matrix
:
exclude
:
-
env
:
NODE_WEBKIT="0.8.6" TARGET_ARCH="x64"
os
:
osx
before_install
:
-
if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
# check if tag exists and matches package.json
-
if [[ $(uname -s) == 'Linux' ]]; then
export CXX="clang++-3.5";
export CC="clang-3.5";
fi;
-
scripts/validate_tag.sh
-
echo $NODE_VERSION
# upgrade nvm
-
node --version
-
npm --version
-
npm update -g npm
-
npm --version
-
source ./scripts/install_node.sh ${NODE_VERSION}
install
:
# put node-pre-gyp on path
...
...
@@ -59,4 +106,5 @@ before_script:
script
:
-
if [[ "${NODE_VERSION}" ]]; then ./scripts/build_against_node.sh; fi;
-
if [[ "${NODE_WEBKIT}" ]]; then ./scripts/build_against_node_webkit.sh; fi;
# disabled for now: need to port to sudo:false
#- if [[ "${NODE_WEBKIT}" ]]; then ./scripts/build_against_node_webkit.sh; fi;
scripts/build_against_node.sh
View file @
99e45f81
#!/usr/bin/env bash
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
set
-e
-u
function
publish
()
{
if
test
"
${
COMMIT_MESSAGE
#*
'[publish binary]'
}
"
!=
"
$COMMIT_MESSAGE
"
;
then
if
[[
${
PUBLISHABLE
}
==
true
]]
&&
[[
${
COMMIT_MESSAGE
}
=
~
"[publish binary]"
]]
;
then
node-pre-gyp package testpackage
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
}
# test installing from source
npm install
--build-from-source
node-pre-gyp package testpackage
npm
test
publish
...
...
@@ -36,8 +22,6 @@ if [[ $(uname -s) == 'Darwin' ]]; then
brew install sqlite
npm install
--build-from-source
--sqlite
=
$(
brew
--prefix
)
else
sudo
apt-get
-qq
update
sudo
apt-get
-qq
install libsqlite3-dev
npm install
--build-from-source
--sqlite
=
/usr
fi
npm
test
...
...
@@ -45,7 +29,6 @@ npm test
platform
=
$(
uname
-s
| sed
"y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
)
if
[[
$(
uname
-s
)
==
'Linux'
]]
;
then
sudo
apt-get
-y
install gcc-multilib g++-multilib
# node v0.8 and above provide pre-built 32 bit and 64 bit binaries
# so here we use the 32 bit ones to also test 32 bit builds
NVER
=
`
node
-v
`
...
...
@@ -73,7 +56,6 @@ if [[ $(uname -s) == 'Linux' ]]; then
# broken for some unknown reason against io.js
if
[[
${
NODE_VERSION
:0:4
}
!=
'iojs'
]]
;
then
# test source compile in 32 bit mode against external libsqlite3
sudo
apt-get
-y
install libsqlite3-dev:i386
CC
=
gcc-4.6
CXX
=
g++-4.6 npm install
--build-from-source
--sqlite
=
/usr
npm
test
fi
...
...
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