Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
293 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,41 @@ | ||
language: node_js | ||
|
||
env: | ||
- CXX=g++-4.8 | ||
|
||
node_js: | ||
- "stable" | ||
- "6.0" | ||
- "5.0" | ||
- "4.0" | ||
script: npm run coverage | ||
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" | ||
- "6" | ||
- "5" | ||
- "4" | ||
- "4.4.4" # Stated specifically for packaging | ||
- "4.0.0" # Used as lowest common dominator | ||
|
||
matrix: | ||
include: | ||
- node_js: "4.4.4" | ||
os: osx | ||
|
||
script: | ||
- npm run coverage | ||
- npm run package | ||
|
||
after_script: | ||
- "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" | ||
|
||
cache: | ||
directories: | ||
- nexe/src | ||
|
||
addons: | ||
artifacts: | ||
paths: | ||
- $( ls deepstream* ) | ||
target_paths: | ||
- $TRAVIS_REPO_SLUG | ||
|
||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
platform: | ||
- x64 | ||
|
||
os: | ||
- Visual Studio 2015 | ||
|
||
install: | ||
- ps: Install-Product node 4.4.4 | ||
- npm install | ||
|
||
test_script: | ||
- node --version | ||
- npm --version | ||
- npm test | ||
- npm run package | ||
|
||
deploy: | ||
provider: S3 | ||
access_key_id: | ||
secure: cq7lgQP04314hwXwM2l0yiUKRcOkwHeKkDHFULrThxE= | ||
secret_access_key: | ||
secure: AMUWZVZ4o7lS6f5ogqxTTCqDUR/TYEmPaVXzb7yRRyFUTF/zQFnZHYk1G/j7ie8/ | ||
bucket: ds-server-artifacts | ||
folder: deepstreamIO\deepstream.io | ||
artifact: nexe\deepstream-* | ||
|
||
build: off |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
var nexe = require( 'nexe' ); | ||
var os = require( 'os' ); | ||
|
||
var nodeVersion = '4.4.4'; | ||
var commit = process.env.TRAVIS_COMMIT || process.env.APPVEYOR_REPO_COMMIT || 'local'; | ||
var platform = os.platform(); | ||
var packageVersion = require( './package.json' ).version; | ||
|
||
if( process.version.indexOf( nodeVersion ) === -1 ) { | ||
console.log( 'We only compile nexe on Node version: ', nodeVersion ); | ||
process.exit(); | ||
} | ||
|
||
// Only include first seven for it to be unique | ||
commit = commit.substr( 0, 7 ); | ||
|
||
var ending; | ||
switch( platform ) { | ||
case 'win32': | ||
ending = 'exe'; | ||
break; | ||
case 'osx': | ||
case 'darwin': | ||
ending = 'osx'; | ||
break; | ||
case 'linux': | ||
ending = 'sh'; | ||
break; | ||
default: | ||
console.log( 'Unknown OS', platform ); | ||
process.exit(); | ||
} | ||
|
||
console.log( "Compiling: nexe/deepstream-" + packageVersion + '-' + commit + '.' + ending ); | ||
|
||
nexe.compile({ | ||
"input": "start.js", | ||
"output": "deepstream-" + packageVersion + '-' + commit + '.' + ending, | ||
"nodeTempDir": "nexe/src", | ||
"framework": "node", | ||
"nodeVersion": nodeVersion, | ||
"js-flags": "--use_strict", | ||
nodeConfigureArgs: ['opt', 'val'], // for all your configure arg needs. | ||
nodeMakeArgs: ["-j", "4"], // when you want to control the make process. | ||
nodeVCBuildArgs: ["nosign", "x64"] // when you want to control the make process for windows. | ||
}, function(err) { | ||
if(err) { | ||
return console.log(err); | ||
process.exit( 1 ); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters