-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (37 loc) · 915 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
40
41
42
43
44
45
46
47
48
49
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 npm-check-updates
script:
- export ROOT=$PWD
- >
for path in \
03-angular4-firebase-auth \
02-angular4-redux-todo \
01-angular4-service-worker
do
export TARGET="$ROOT/$path";
cd $TARGET;
cp -Rf src/firebase.config-default.ts src/firebase.config.ts
yarn install;
yarn predeploy;
if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
ncu -u
done;
cache:
directories:
- ./*/node_modules/
- $HOME/.npm