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

Commit

Permalink
Add Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejas Kumar committed Aug 8, 2018
1 parent 6f1b79c commit 286902e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file tells Travis what's up
language: node_js
node_js:
- stable

notifications:
email: false

# This allows tests to run more efficiently without leaking memory
# More info: https://facebook.github.io/jest/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-and-or-continuous-integration-ci-server
env:
- JEST_MAX_WORKERS: 4

# When Travis gets notified of a new build, do this
script:
- yarn ci
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"build": "rollup -c",
"precommit": "lint-staged",
"preversion": "npm run build",
"version": "auto-changelog -p && git add CHANGELOG.md"
"version": "auto-changelog -p && git add CHANGELOG.md",
"lint": "tslint src/**/*{ts,tsx} --project .",
"ci": "npm run test && npm run lint"
},
"lint-staged": {
"*.md": [
Expand Down

0 comments on commit 286902e

Please sign in to comment.