diff --git a/.travis.yml b/.travis.yml index 3994d3a0..861af348 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,36 +1,28 @@ language: node_js sudo: false - -stages: - - Test - - name: Deploy - if: tag IS present +node_js: + - stable + - lts/boron + - lts/carbon cache: directories: - node_modules before_cache: rm -rf node_modules/.cache +install: npm install --build-from-source +after_success: cat ./coverage/lcov.info | coveralls -stdJob: &stdJob - stage: Test - script: npm test - after_success: cat ./coverage/lcov.info | coveralls +stages: + - test + - name: Deploy + if: tag IS present jobs: include: - - node_js: &node_latest 9 - <<: *stdJob - - node_js: 8 - <<: *stdJob - - node_js: 7 - <<: *stdJob - - node_js: 6 - <<: *stdJob - - node_js: '6.0' - <<: *stdJob - stage: Deploy - node_js: *node_latest + node_js: stable script: node ./prepublish.js + after_success: false deploy: - provider: npm skip_cleanup: true diff --git a/README.md b/README.md index a7a9ebae..c6403306 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,10 @@ The original [shrink-ray](https://www.npmjs.com/package/shrink-ray) appears to be abandoned. This mirror has all the dependencies up-to-date. -Note for Node 10.0 and up: `node-zopfli` now fails to install from the network. You must pass the `--build-from-source` flag to `npm install`. +Note for Node 10.0 and up: `node-zopfli` now fails to install from the network. You must pass the `--build-from-source` flag to `npm install` and have all the native addon build requirements met: + + - Python 2.7 + - A C++ build environment (e.g. GCC) [![Version](https://img.shields.io/npm/v/shrink-ray-current.svg?style=flat-square)](https://www.npmjs.com/package/shrink-ray-current) [![License](https://img.shields.io/npm/l/shrink-ray-current.svg?style=flat-square)](https://www.npmjs.com/package/shrink-ray-current) diff --git a/package.json b/package.json index 77adf125..a29d6520 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "shrink-ray-current", "description": "Node.js compression middleware with brotli and zopfli support", - "version": "2.1.0", + "version": "2.1.1", "contributors": [ "Arturas Molcanovas (https://alorel.github.io)", "Douglas Christopher Wilson ",