-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (61 loc) · 1.44 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
group: edge
language: node_js
node_js:
- 6
- 7
- 8
install: true
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt update
- sudo apt install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
before_script:
- npm i -g yarn
script:
- export ROOT=$PWD
- >
for path in 00-reducer; do
export TARGET="$ROOT/$path";
cd $TARGET;
yarn install;
yarn build;
if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
done;
- >
for path in 11-contact-list-with-rest-api \
10-async-redux-with-rest-api \
09-apply-middleware \
08-combine-reducers \
07-connect-many \
06-todo \
05-clicker-template \
04-redux-devtools \
03-react-redux-bank \
02-redux-bank \
01-react-bank \
0-template; do
export TARGET="$ROOT/$path";
cd $TARGET;
yarn install;
yarn build;
if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
done;
after_script:
- yarn install
- yarn outdated
- yarn upgrade
#
- yarn global add npm-check-updates
- ncu
- ncu -u
#
- yarn upgrade
- npm outdate
cache:
directories:
- node_modules/
- $HOME/.npm