forked from dizco/react-scrollable-feed
/
.travis.yml
39 lines (32 loc) · 825 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: node_js
node_js:
- 10
addons:
apt:
packages:
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
- libgconf-2-4
cache:
# Caches $HOME/.npm when npm ci is default script command
# Caches node_modules in all other cases
npm: true
directories:
# we also need to cache folder with Cypress binary
- ~/.cache
before_install:
- pwd && ls
- env | sort
install:
- npm install -g react-scripts
- npm install react react-dom prop-types
- npm install
- cd ./example && npm install
before_script:
- cd $TRAVIS_BUILD_DIR
script:
- npm run build
- npm test
# Run browser tests
- npm run start:silent &
- cd ./example && npm run start:silent &
- cd $TRAVIS_BUILD_DIR && npm run cypress:run -- --record --key $CYPRESS_KEY