Skip to content

Commit

Permalink
Adding nexe
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User authored and yasserf committed Jun 4, 2016
1 parent 3cd2630 commit 192375e
Show file tree
Hide file tree
Showing 9 changed files with 399 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@

# Logs
logs
*.log
Expand All @@ -16,6 +17,9 @@ coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# nexe
build

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

Expand All @@ -28,4 +32,4 @@ node_modules
.lock-wscript

# IDE configuration
.idea
.idea
63 changes: 58 additions & 5 deletions .travis.yml
@@ -1,8 +1,61 @@
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
- node scripts/package.js
- chmod 555 scripts/package.sh
- ./scripts/package.sh

after_script:
- "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"

cache:
directories:
- build/src

deploy:
- provider: s3
access_key_id:
secure: "Tl42ZPo3T6LpJ24QBfs8ZAOlYZr/8NgfOPhbsWf0In6ro4cEgOaq3JFSooP/eozSquYs1scpgpSv48a7dvHv4Ranm/toO9sxPgMs95OnjJCMSY2//oM+rStRAJTMLoeB2OWWgs1oSGkiuFJASXalTueVGOlVMFDsQ8MEHOWIv32vXFG6P3SgtO5GiTAvtYZEVnTdUSgZEni5dyWMRwP6ugMsl1WEBIBTE8xNHnRIPBD/sQk7pgWYp/Q4FQZ5NMcG7oegF4DLsxvUP5XVQIFABD/8G19Y/ABN9yCsvmXlywTZ2xROQts6Qpwq0w+qXMYHawJA2TeHRG0InfEJRXvKC62XD0fzpzJxASDsZa5oEfTtl2FY4MvQsWZnvgGLLs/nWkPPJNOphxVjX0x3xPPUydsNGYGty5f2tTjWx2axF+gOYY3yAFAXCLCx6JM6cKY7QlEUvG/v+okB9foJSnTl+POS16giCiBTNmi1qo0J3kvdb6zSa4JkvO5ZNq5VCmLRN+G0xh1IYuZaTwaQQz9bntdRm+IOBjGCExR5qhT5gClYhM8DHrQXl0d/aFfvtvw89ljLvPQ+rZGeSjqM03q3u1KqLhheF0px7cSPQ1PmSPtY4aO4JIR3Aw/6Szo5a4crXyze6qzkbboUaVZQTXJauuna35AkTTFnqwkHOuAys3g="
secret_access_key:
secure: "eEtp6gpC9d/abC/RRaBjcIKylNz2E52xLXAvshDJ03RrBg5IkXFlaP/JalCqXnh755QpHRpyUsAT1D3I9bsELCUaNZyldmLr/TeYQUQhYkDqww/HPJk8i3a6tkFP8NgdrM+2XNF2CQMPxnPoPRg99gKv/YpISaWvsMvgvFlj7tXuhL8iKIe0LDlQTSg5ICfo4a2HEfH8/6wGMBf+uWkpJ8v3h2IxjI2JcjpW2Zg+wc8LekZc1jHLp2DAj0G+pZ499LedpqF5wjgqMIMseF+DWRkUTD5GPlWtbn/nfBodSW4TeWPIyp+QgPX7zMbmt7CCtIZBkfqzCEVFGTkYkfYler9tC9RHDdzIr8tjNP25j9c9IQ4lh+i03xGEfYEg0PIXVxtg5yDm7SZY7Kx8weBnkuNMMss1VcTXTSAuIOmUC4+8BBjhl0UWjtIElAsvUD6NLbgHS9N5eHGVHrpck9WJXjZykJF/+g3ONQyeI9T46OaJ+K5zmGBLnx3a4xNa4oZB11UzgXXuzsUFFratzzyhUm5V0nh4uADXiQVoWTPKT9I9cI7q8ZHL4C0Zocb8faSgdWpqbfk6zX/K/wcaleqgmz3y/RUV0JBZvYx4ckJr4wWT+U3Opy6nIkWA0zyTeJwjpYEFCngmfopAvG/byt+9XCm1WOsDrE1H/fbfK52r1qQ="
bucket: ds-server-artifacts
skip_cleanup: true
acl: public_read
local_dir: $( ls build | grep -v src )
upload-dir: $TRAVIS_REPO_SLUG
- provider: releases
skip_cleanup: true
api_key:
secure: "PY1AfzPa1uO7n+IE/u5eM+vuQEWm46oPK6ygqIU1KEQO2sjayb+KsWmWGfgngxDM/gUcu0XRDGB3G9QTK3Lsj6zPq582Pi3xlm3WdRQj/23SigAxO1IxIddrdyTGP21Ifkpul/A7nYLhBfpDVS1vP1qzPZmQy61GG2il0pTnsDCy2eDu/WccWFeBns4XDDIxOJJH43dQBcYL7IXZ93d77VraGGyHQmHdVJMSYVUhPHvkzJCitrbKZ30KxD8ewTURYzWfzrjOSr1kW2L0/FYDHFHImOVjeGvCXsQ5GjwGoTIHXUn6Buz7dwQUUU7IB/a+2cObliHx8JVHSJNtiiJJL2FqLjDW6SajP5umuEyXlJzETTpJgiwPj7YIU5oVWCr80SSEBeZugQL/JBb/n78SdmHo7kxLCq5WmwLi5hBGIX4OQ5gcoY+GARguprzYrS7n1Nh2RGAYmlmMUzKqSTGRlfl/V/7aDxsIkzrKShIa4OqHjDxWvWaRsykAc6aGg2E6Dy2iagFRfohAf0V4qIRfgIvzLz16Add3B61m0jDV5OjT45Or8h5+Ihj7FqjA4uGeQIA5/kIL5LFzFiwTR6wRRJl2gmMQsNP30FFJb9gtRmGkQfMBB7vIwJD+ye4arR4jFK4ciFSPjEvk63dkaSp5T/2Lh/0Pj0L3m2Z1ofmx9NU="
file_glob: true
file:
- "build/*.deb"
- "build/*.rpm"
- "build/*.tar.gz"
- "build/*.zip"
on:
tags: true

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
28 changes: 28 additions & 0 deletions appveyor.yml
@@ -0,0 +1,28 @@
platform:
- x64

os:
- Visual Studio 2015

install:
- ps: Install-Product node 4.4.4
- npm install

test_script:
- node --version
- npm --version
- npm test
- node scripts\package.js
- bash scripts\package.sh

deploy:
provider: S3
access_key_id:
secure: cq7lgQP04314hwXwM2l0yiUKRcOkwHeKkDHFULrThxE=
secret_access_key:
secure: AMUWZVZ4o7lS6f5ogqxTTCqDUR/TYEmPaVXzb7yRRyFUTF/zQFnZHYk1G/j7ie8/
bucket: ds-server-artifacts
folder: $(APPVEYOR_REPO_NAME)
artifact: build\deepstream-*

build: off
220 changes: 220 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions package.json
Expand Up @@ -11,16 +11,21 @@
"watch": "node node_modules/watch/cli.js \"npm test\" ./src ./test",
"reporter": "node jasmine-runner",
"test": "jasmine JASMINE_CONFIG_PATH=jasmine.json",
"reporter": "node jasmine-runner",
"test-http-server": "node test/test-helper/start-test-server.js"
},
"repository": {
"type": "git",
"url": "https://github.com/deepstreamIO/deepstream.io.git"
},
"optionalDependencies": {
"bufferutil": "^1.2.1",
"charset": "^1.0.0",
"bufferutil": "^1.2.1",
"utf-8-validate": "^1.2.1"
},
"dependencies": {
"colors": "1.0.3",
"engine.io": "1.6.8",
"engine.io": "1.6.9",
"js-yaml": "^3.6.1",
"lodash.merge": "^4.4.0",
"minimist": "1.2.0"
Expand All @@ -33,6 +38,7 @@
"istanbul": "^0.4.3",
"jasmine": "^2.4.1",
"jasmine-spec-reporter": "^2.4.0",
"nexe": "^1.1.2",
"proxyquire": "1.7.9",
"watch": "^0.18.0"
},
Expand Down
13 changes: 13 additions & 0 deletions scripts/details.js
@@ -0,0 +1,13 @@
var exec = require( 'child_process' ).execSync;

if( process.argv[2] === 'VERSION' ) {
console.log( require('../package').version )
} else if( process.argv[2] === 'NAME' ) {
console.log( require('../package').name )
} else if( process.argv[2] === 'OS' ) {
console.log( require('os').platform() )
} else if( process.argv[2] === 'COMMIT' ) {
console.log( exec( 'git log --pretty=format:%h -n 1' ).toString() )
} else {
console.log( 'ERROR: Pass in VERSION or NAME as env variable' )
}

0 comments on commit 192375e

Please sign in to comment.