Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (32 sloc) 891 Bytes
language: node_js
sudo: required
node_js:
- 10
- 8
# - 6
before_install:
- sudo sysctl fs.inotify.max_user_watches=524288
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
install: 'yarn install --ignore-engines'
script:
# Building upfront because some react-cosmos/server unit tests require
# react-cosmos-playground to be built
- yarn build
# Test source (with cross-package coverage)
- yarn link-entries src
- yarn flow --retries 12
- yarn lint
- yarn test:ts:unit --maxWorkers=2
- yarn codecov
# TS source code cannot be ran by Babel-powered test suite
- yarn link-entries dist react-cosmos-shared2 react-cosmos-fixture
- yarn test:unit --maxWorkers=2
- yarn codecov
# Test build
- yarn link-entries dist
- yarn start & yarn test:e2e
cache:
yarn: true
directories:
- /home/travis/.cypress/Cypress
You can’t perform that action at this time.