From 6ecf282956a995aa979a7754876d7b22fd99a127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dandelion=20Man=C3=A9?= Date: Fri, 2 Mar 2018 14:39:54 -0800 Subject: [PATCH] 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 --- .travis.yml | 4 ++++ package.json | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..40cfa91 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - "node" +script: yarn travis diff --git a/package.json b/package.json index 9efed28..9ccc218 100644 --- a/package.json +++ b/package.json @@ -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": {