This is an automated email from the ASF dual-hosted git repository. brianspector pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-milagro-javascript.git
commit 49e791ec32fc3627957be7d0531cc17ec61ea440 Author: Simeon Aladjem <[email protected]> AuthorDate: Wed Nov 30 12:41:29 2016 +0200 Merge changes for integrationg with Travis CI and Coveralls --- .gitignore | 4 ++++ .travis.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ README.md | 14 +++++++++++++- VERSION | 1 + package.json | 6 +++--- 5 files changed, 66 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 2cc3e2a..51db044 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ bower_components/ nbproject/ test/coverage.html mocha.json + +target +coverage +htmlcov diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ed09a06 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,45 @@ +language: node_js + +sudo: false + +branches: + except: + - release + +branches: + only: + - master + - develop + - travis + +node_js: + - "4" + - "5" + - "6" + - "node" + - "iojs" + +matrix: + allow_failures: + - node_js: nightly + +addons: + apt: + packages: + - build-essential + +before_install: + - if [ -n "$GH_USER" ]; then git config --global github.user ${GH_USER}; fi; + - if [ -n "$GH_TOKEN" ]; then git config --global github.token ${GH_TOKEN}; fi; + +install: + - if [ "$TRAVIS_NODE_VERSION" = "node" ]; then npm install istanbul coveralls --save; fi; + - npm install express --save + - npm install + +script: + - npm run-script test_basic + - if [ "$TRAVIS_NODE_VERSION" = "node" ]; then ./node_modules/.bin/istanbul cover ./; fi; + +after_success: + - if [ "$TRAVIS_NODE_VERSION" = "node" ]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls; fi diff --git a/README.md b/README.md index 0a44c3d..1280271 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,17 @@ # Headless Milagro Client Library +[](https://travis-ci.org/miracl/incubator-milagro-mfa-js-lib) +[](https://coveralls.io/github/miracl/incubator-milagro-mfa-js-lib?branch=master) + +* **category**: Library +* **copyright**: 2016 MIRACL UK LTD +* **license**: ASL 2.0 - http://www.apache.org/licenses/LICENSE-2.0 +* **link**: https://github.com/apache/incubator-milagro-mfa-js-lib + +## Description + +NodeJS client for Milagro + ## Requirement for build & testing 1. Nodejs @@ -394,4 +406,4 @@ this method always succeeds.  ##### User Authentication - \ No newline at end of file + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..524cb55 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.1.1 diff --git a/package.json b/package.json index c3f8c00..b54d209 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,9 @@ "description": "Mpin frontend library.", "main": "index.js", "scripts": { - "test": "mocha -R mocha-bamboo-reporter", - "test2": "mocha test --require blanket --reporter html-cov > test/coverage.html" + "test": "mocha --reporter mocha-bamboo-reporter", + "test2": "mocha test --require blanket --reporter html-cov > test/coverage.html", + "test_basic": "mocha" }, "repository": { "type": "git", @@ -18,7 +19,6 @@ "author": "Mpin", "license": "ISC", "devDependencies": { - "blanket": "^1.2.1", "chai": "^3.4.1", "mocha": "^2.3.4", "sinon": "^1.17.2",
