Skip to content

Commit

Permalink
add semantic release, typedoc, appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
buehler committed Nov 6, 2017
1 parent 242a7c9 commit e026e23
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 21 deletions.
18 changes: 18 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: "{build} - {branch}"
skip_tags: true
skip_branch_with_pr: true

environment:
matrix:
- nodejs_version: "8"
- nodejs_version: "7"
- nodejs_version: "6"

install:
- ps: Install-Product node $env:nodejs_version
- npm install

test_script:
- npm test

build: off
52 changes: 34 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,41 @@
language: node_js

cache:
directories:
- node_modules
stages:
- name: test
if: tag IS blank
- name: deploy
if: branch = master

notifications:
email: false

node_js:
- '8'
- '6'
env:
- BUILD_LEADER_ID=5

before_script:
- npm prune

after_success:
- npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
- npm i
- npm run build
- npm run semantic-release

branches:
except:
- /^v\d+\.\d+\.\d+$/
jobs:
include:
- stage: test
node_js: '8'
after_success:
- npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
- stage: test
node_js: '7'
after_success:
- npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
- stage: test
node_js: '6'
after_success:
- npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
- stage: deploy
node_js: '8'
script: npm run typedoc
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: ./docs
- stage: deploy
node_js: '8'
before_script: npm run build
script: echo "Deploy with semantic release"
after_success: npm run semantic-release
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ Loader for `proc-that`. Loads processed items into an elasticsearch index.
##### A bunch of badges

[![Build Status](https://travis-ci.org/smartive/proc-that-elastic-loader.svg?maxAge=3600)](https://travis-ci.org/smartive/proc-that-elastic-loader)
[![Build Status](https://ci.appveyor.com/api/projects/status/382q34ka9its372v?svg=true)](https://ci.appveyor.com/project/buehler/proc-that-elastic-loader)
[![npm](https://img.shields.io/npm/v/proc-that-elastic-loader.svg?maxAge=3600)](https://www.npmjs.com/package/proc-that-elastic-loader)
[![Coverage status](https://img.shields.io/coveralls/smartive/proc-that-elastic-loader.svg?maxAge=3600)](https://coveralls.io/github/smartive/proc-that-elastic-loader)
[![license](https://img.shields.io/github/license/smartive/proc-that-elastic-loader.svg?maxAge=2592000)](https://github.com/smartive/proc-that-elastic-loader)
[![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)
[![Greenkeeper badge](https://badges.greenkeeper.io/smartive/proc-that-elastic-loader.svg)](https://greenkeeper.io/)

## Installation
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"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",
"typedoc": "del-cli ./docs && typedoc --ignoreCompilerErrors --out ./docs --mode file --tsconfig ./config/tsconfig.build.json ./src/",
"semantic-release": "semantic-release"
},
"keywords": [
Expand All @@ -34,16 +35,17 @@
"@types/jest": "^21.1.5",
"del-cli": "^1.1.0",
"jest": "^21.2.1",
"semantic-release": "^9.0.0",
"ts-jest": "^21.1.4",
"tslint": "^5.8.0",
"tslint-config-airbnb": "^5.3.0",
"tsutils": "^2.12.2",
"typescript": "^2.6.1",
"semantic-release": "^9.0.0"
"typedoc": "^0.9.0",
"typescript": "^2.6.1"
},
"dependencies": {
"elasticsearch": "^13.3.1",
"proc-that": "^1.0.0",
"proc-that": "^1.0.1",
"@types/node": "^8.0.47",
"rxjs": "^5.5.2",
"tslib": "^1.8.0"
Expand Down
2 changes: 2 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
]
}
],
"no-boolean-literal-compare": false,
"strict-boolean-expressions": false,
"no-increment-decrement": false,
"no-trailing-whitespace": [
true,
Expand Down

0 comments on commit e026e23

Please sign in to comment.