diff --git a/.travis.yml b/.travis.yml index 4f05640..7bd9f66 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,25 @@ language: node_js + +cache: + directories: + - node_modules + +notifications: + email: false + node_js: -- '8' -- '6' + - '8' + - '6' -script: npm run citest -after_script: npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls +before_script: + - npm prune -before_deploy: -- npm run bootstrap -- tsc --outDir . +after_success: + - npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls + - npm i + - npm run build + - npm run semantic-release -deploy: - provider: npm - email: christoph.buehler@bluewin.ch - api_key: - secure: NoAP3zXpaw7efTltwCT5v//pWSTsCk1pvMVR02gFimdOI4kc9yr45GUAemmMBKDMPyxqwS2rJHl1A6Wps+P6gz2oMAFyioiK5TZI0qQNTVu9ggD7d1hlCr5Is1WZckblU863YckES6u+HoO0eXFC3iGZnh+1BldbTPR1PA9LWFJPGsZzJsDQRpxOWY6TLKRPlE53QmdclcIc//o4vVCldrCAdKojGlOVKhc03IaWt4i+onCszP81rUYkTTPdE2ODwQZrlbn1D01ojPu8UvPM4REKB90P+C9J/9PL1LR95UjHNPr2+nsa5dmbI2IQhAEudvAKOyBJV27DfZ2AcNNQyXc1e3OnH7zhP3Y19rceTzk0DOXnXKrQbzZEZ9ICnPfxv5PaQ+vOFJB4XkyrrF7LBWqNMRiYywt+vCBRelU7RUepXtO5wcj4TJmXUyB2fESL4W90HtPh1AZNvRPL2dH2DZF3tE2XSnG0MSHbwcrO+9ZUFZ2xBxCNM4WW5VCzH5H9z+ieLYqQmDwjBCgQp52Nw5UnJSmHk72Tlbbzphg4e7e40xH00AIVfLQiBHzEMOyRfZbtvS7cI/1SSMpP/sU+9rFUl5GiavupPVbFnzDUNBltXOk6HSaFtlarafO2llUcAGgxRithYLpjGbD1/4ZU+5NyOR4AFBejj0oq1cDAn7Y= - on: - tags: true - repo: smartive/proc-that-elastic-loader +branches: + except: + - /^v\d+\.\d+\.\d+$/ diff --git a/package.json b/package.json index 9b88654..43758b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "proc-that-elastic-loader", - "version": "0.4.0", + "version": "0.0.0-development", "description": "Loader for proc-that. Loads processed items into an elasticsearch index.", "main": "index.js", "scripts": { @@ -9,7 +9,8 @@ "develop": "npm run clean && tsc -p .", "lint": "tslint -c ./tslint.json -p ./config/tsconfig.build.json", "test": "npm run lint && npm run clean && jest -c ./jest.json", - "test:watch": "npm run clean && jest -c ./jest.json --watch" + "test:watch": "npm run clean && jest -c ./jest.json --watch", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "keywords": [ "etl", @@ -37,7 +38,8 @@ "tslint": "^5.5.0", "tslint-config-airbnb": "^5.2.1", "tsutils": "^2.8.0", - "typescript": "^2.4.2" + "typescript": "^2.4.2", + "semantic-release": "^6.3.6" }, "dependencies": { "elasticsearch": "^13.2.0",