diff --git a/.flowconfig b/.flowconfig index 2e5440c6862ad..0ab4da3dd3c6d 100644 --- a/.flowconfig +++ b/.flowconfig @@ -36,6 +36,14 @@ /node_modules/xdl/.* /node_modules/reqwest/.* /node_modules/metro-bundler/.* +/node_modules/fbjs/.* +/node_modules/graphql/.* +/node_modules/prettier/.* + +; Gutenberg tools +/gutenberg/node_modules/findup/.* +/gutenberg/node_modules/cypress/.* +/gutenberg/node_modules/config-chain/.* ; Hack to make Flow works on OS X with a RN project /node_modules/metro/.* diff --git a/.travis.yml b/.travis.yml index d12a2e4dcd48d..9986fcfbdf615 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ +before_script: + - yarn install + matrix: include: - language: node_js @@ -6,5 +9,4 @@ matrix: cache: yarn: true script: - - yarn install - - npm run flow + - ./.travis/travis-checks-js.sh diff --git a/.travis/travis-checks-js.sh b/.travis/travis-checks-js.sh new file mode 100755 index 0000000000000..8917611b70555 --- /dev/null +++ b/.travis/travis-checks-js.sh @@ -0,0 +1,11 @@ +function pOk() { + echo "[$(tput setaf 2)OK$(tput sgr0)]" +} + +function pFail() { + echo "[$(tput setaf 1)KO$(tput sgr0)]" + exit 1 +} + +npm run flow || pFail +npm run prettier-check || pFail