Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
chore: add ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Aug 19, 2019
1 parent 9e404e9 commit 38f3a93
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
exclude_patterns:
- 'test/**/*.spec.ts'
plugins:
eslint:
enabled: true
channel: 'eslint-4'
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
jobs:
include:
- stage: test
language: node_js
cache: npm
node_js:
- 12
- 10
install:
- npm ci
script:
- npm run test:coverage
after_script:
- npx codeclimate-test-reporter < coverage/lcov.info
- stage: release
language: node_js
node_js:
- 10
install:
- npm i -D @semantic-release/commit-analyzer @semantic-release/release-notes-generator
@semantic-release/github
script:
- npx semantic-release
stages:
- test
- name: release
if: branch = master AND type != pull_request
28 changes: 27 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test"
"test": "is-ci \"test:ci\" \"test:watch\"",
"test:ci": "tsdx test",
"test:watch": "tsdx test --watch",
"test:coverage": "tsdx test --coverage"
},
"license": "MIT",
"husky": {
Expand All @@ -28,6 +31,7 @@
"@types/jest": "24.0.17",
"@types/meow": "5.0.0",
"husky": "3.0.3",
"is-ci-cli": "1.1.1",
"jest": "^24.8.0",
"jest-watch-typeahead": "^0.3.1",
"prettier": "^1.18.2",
Expand Down

0 comments on commit 38f3a93

Please sign in to comment.