Setup travis CI testing (#58)

Observe that it passed on this commit, but failed builds [#2: Break Tests][2], [#3: Break Flow][3], and [#4: Break Prettier][4]. 

Close #23 

[2]: https://travis-ci.org/sourcecred/sourcecred/builds/348453195
[3]: https://travis-ci.org/sourcecred/sourcecred/builds/348454983
[4]: https://travis-ci.org/sourcecred/sourcecred/builds/348455387
This commit is contained in:
Dandelion Mané 2018-03-02 14:39:54 -08:00 committed by GitHub
parent 58410c62fa
commit 6ecf282956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

4
.travis.yml Normal file
View File

@ -0,0 +1,4 @@
language: node_js
node_js:
- "node"
script: yarn travis

View File

@ -52,10 +52,12 @@
"precommit": "npm run lint-staged",
"lint-staged": "lint-staged",
"prettify": "prettier --write '**/*.js'",
"check-pretty": "prettier --list-different '**/*.js'",
"start": "node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js --env=jsdom",
"flow": "flow"
"flow": "flow",
"travis": "npm run check-pretty && npm run flow && CI=true npm run test"
},
"license": "MIT",
"lint-staged": {