From 5f955db853a5ad400d997314047663efdcc7a75b Mon Sep 17 00:00:00 2001 From: Joscha Feth Date: Fri, 29 Jan 2016 11:25:46 +1100 Subject: [PATCH] chore(build): Use semantic-release --- .travis.yml | 22 ++++++++++++++++++++-- README.md | 1 + package.json | 11 ++++++----- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9f9c6fc..2b8a400 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,27 @@ +sudo: false language: node_js +cache: + directories: + - node_modules +notifications: + email: false node_js: - - "4.2" - - "stable" + - '4' + - 'stable' script: - npm run lint - npm test - npm link --silent && npm link crawlkit-runner-accessibility-developer-tools --silent - for f in examples/*.js; do echo "• running '$f'" && travis_retry node $f > /dev/null; done +before_install: + - npm i -g npm@^2.0.0 +before_script: + - npm prune +after_success: + - 'curl -Lo travis_after_all.py https://git.io/travis_after_all' + - python travis_after_all.py + - 'export $(cat .to_export_back) &> /dev/null' + - npm run semantic-release +branches: + except: + - "/^v\\d+\\.\\d+\\.\\d+$/" diff --git a/README.md b/README.md index 69f9942..632a389 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![David](https://img.shields.io/david/crawlkit/runner-accessibility-developer-tools.svg)]() [![node](https://img.shields.io/node/v/crawlkit-runner-accessibility-developer-tools.svg)]() [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) +[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) This runner can be used with [CrawlKit](https://github.com/crawlkit/crawlkit) in order to audit a website with the [Google Chrome Accessibility Developer Tools](https://github.com/GoogleChrome/accessibility-developer-tools). diff --git a/package.json b/package.json index bc54db5..bf80fd4 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,16 @@ { "name": "crawlkit-runner-accessibility-developer-tools", - "version": "1.1.2", "description": "A CrawlKit runner for running the Google Chrome a11y developer tools", "main": "src/index.js", "scripts": { "test": "mocha", "lint": "eslint .", - "tdd": "mocha --watch --reporter min" + "tdd": "mocha --watch --reporter min", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "repository": { "type": "git", - "url": "git+ssh://git@github.com/crawlkit/runner-accessibility-developer-tools.git" + "url": "https://github.com/crawlkit/runner-accessibility-developer-tools.git" }, "keywords": [ "crawlkit", @@ -38,7 +38,8 @@ "eslint-config-airbnb": "^4.0.0", "freeport": "^1.0.5", "http-server": "^0.8.5", - "mocha": "^2.3.4" + "mocha": "^2.3.4", + "semantic-release": "^4.3.5" }, "dependencies": { "accessibility-developer-tools": "^2.10.0", @@ -56,4 +57,4 @@ "path": "./node_modules/cz-conventional-changelog" } } -} \ No newline at end of file +}