Skip to content
Snippets Groups Projects
Commit a71f1a1f authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Preparing precompiled builds

parent 9eabac8f
Branches
Tags
No related merge requests found
# Nodejs software
language: node_js language: node_js
node_js: node_js:
- 0.12 - 0.12
sudo: false sudo: false
script: "npm run-script test-travis" # Unit Tests (+code coverage)
script: npm run-script test-travis
# Send coverage data to Coveralls
after_script: after_script:
# Send coverage data to Coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- rm -Rf ./coverage - rm -Rf ./coverage
# Download & embed Nodejs binary
- NVER=`node -v`
- wget http://nodejs.org/dist/${NVER}/node-${NVER}-linux-x64.tar.gz
- tar czf node-${NVER}-linux-x64.tar.gz
- mv node-${NVER}-linux-x64 node
# Clean testing packages
- npm prune --production
- tar czf ucoin.tar.gz ./ --exclude ".git" --exclude "coverage" --exclude "test" --exclude "share"
# Releases deployed on GitHub
deploy:
provider: releases
api_key:
secure: feyz5YmzYj6g6ZJKAv7u3pp9j9OY6oL4Pcx8mkha25BT1kEIu7lzvkZu4mJAIDjCxJjEkce3fNGXhRICqoMhRy/FK5dUUTpmP3KoMLNNJboO+MhDqjPEb6OYyafikSWnm0BszPL38FzSYMdmvNZ6WirOyVfrdzVPgU6MG0D99w8=
file: ucoin.tar.gz
on:
repo: ucoin-io/ucoin
ucoin 0 → 100755
#!/bin/bash
NODE=node
if [[ -d ./node ]]; then
NODE=./node/bin/node
fi;
VERSION=`node -v`
if [[ $VERSION != v0.12* ]]; then
echo "Node.js v0.12 is not available";
else
$NODE --harmony ./bin/ucoind $*
fi;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment