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
8d22c41d
Commit
8d22c41d
authored
Apr 09, 2014
by
Dane Springmeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[publish binary]
parent
aa5998f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
+29
-1
.travis.yml
.travis.yml
+5
-1
build.bat
scripts/build.bat
+0
-0
validate_tag.sh
scripts/validate_tag.sh
+24
-0
No files found.
.travis.yml
View file @
8d22c41d
...
...
@@ -9,6 +9,10 @@ env:
-
secure
:
HxCS2dQAWI0KmCFnFNNZoucG4FeAW+itG7+Hp0dNtwmxZzGOZYFO2bZcGvTAMNfVN++oqLxTebYQI1oB5yUl5mPJjrjthaGS6Zq3S6rfJcXiv+icYgEXlR6ejQ97dsHw1Jeg8nedCQlI4kHfvG6pgBLhq9hnugxH1Cjhdt14E9U=
before_install
:
# check if tag exists and matches package.json
-
scripts/validate_tag.sh
# get commit message
-
COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
# put node-pre-gyp on path
-
export PATH=./node_modules/.bin/:$PATH
-
echo $NODE_VERSION
...
...
@@ -35,7 +39,7 @@ before_script:
-
if test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE"; then echo PUBLISH_BINARY;PUBLISH_BINARY=true; fi;
-
if [[ ${PUBLISH_BINARY} ==
true
]]; then node-pre-gyp package publish; fi
# for testing node-webkit, launch a virtual display
-
if [ "$NODE_WEBKIT" != "" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi
-
if [ "$NODE_WEBKIT" != "" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
+extension RANDR
; fi
# note: `sleep 3` gives xvfb some time to start
script
:
...
...
scripts/build.bat
100644 → 100755
View file @
8d22c41d
File mode changed from 100644 to 100755
scripts/validate_tag.sh
0 → 100755
View file @
8d22c41d
#!/bin/bash
set
-u
# let's catch the case where we tag but
# forget to increment the package.json version
# check if we are on a tag
if
[
`
git describe
--tags
--always
HEAD
`
]
;
then
echo
'looks like we are on a tag'
if
[[
$TRAVIS_BRANCH
==
`
git describe
--tags
--always
HEAD
`
]]
;
then
echo
'git reports the same tag as travis'
# now check to make sure package.json `version` matches
MODULE_VERSION
=
$(
node
-e
"console.log(require('./package.json').version)"
)
if
[[
$MODULE_VERSION
!=
$TRAVIS_BRANCH
]]
&&
[[
v
$MODULE_VERSION
!=
$TRAVIS_BRANCH
]]
;
then
echo
"package.json version (
$MODULE_VERSION
) does not match tag (
$TRAVIS_BRANCH
)"
exit
1
else
echo
"Validation success: package.json (
$MODULE_VERSION
) matches tag (
$TRAVIS_BRANCH
)"
fi
else
echo
"warning: travis thinks the tag (
$TRAVIS_BRANCH
) differs from git (
`
git describe
--tags
--always
HEAD
`
)"
fi
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