Skip to content

Commit

Permalink
chore: add flow definitions to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
alxshelepenok committed Jul 19, 2019
1 parent 98ffd67 commit 04bb148
Show file tree
Hide file tree
Showing 5 changed files with 1,197 additions and 28 deletions.
23 changes: 0 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,13 @@ jobs:
- node_modules
key: dependencies-{{ checksum "yarn.lock" }}

flow-typed:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "yarn.lock" }}
- restore_cache:
keys:
- flow-typed-{{ checksum "yarn.lock" }}
- run: yarn flow-typed
- save_cache:
paths:
- flow-typed
key: flow-typed-{{ checksum "yarn.lock" }}

lint:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "yarn.lock" }}
- restore_cache:
keys:
- flow-typed-{{ checksum "yarn.lock" }}
- run: yarn lint

test:
Expand Down Expand Up @@ -87,12 +68,8 @@ workflows:
test:
jobs:
- install
- flow-typed:
requires:
- install
- lint:
requires:
- flow-typed
- install
- test:
requires:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/
flow-typed/
.cache/
public/
npm-debug.log
Expand Down
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ install:
- npm install -g codecov
script:
- yarn install
- yarn flow-typed
- yarn lint
- yarn test:coverage --runInBand --no-cache
- yarn test --runInBand --no-cache
- codecov
cache:
directories:
- node_modules
- flow-typed
- node_modules
Loading

0 comments on commit 04bb148

Please sign in to comment.