-
Notifications
You must be signed in to change notification settings - Fork 85
/
.travis.yml
47 lines (45 loc) · 1.13 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
language: node_js
node_js:
- '9'
branches:
only:
- master
before_script:
- npm install -g @angular/[email protected]
cache:
yarn: true
directories:
- "$HOME/.yarn-cache"
- node_modules
dist: trusty
addons:
chrome: stable
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- sudo sysctl fs.inotify.max_user_watches=524288
- sudo sysctl fs.inotify.max_queued_events=524288
- sudo sysctl -p
script:
- npm run lint
- npm run build
- npm run build:mock
- npm install cypress
- npm install serve
- cd /home/travis/build/owsolutions/angular5-iot-dashboard && PORT=4200 ./node_modules/.bin/serve dist &
- sleep 10
- npm run ci
- npm install && npm run build:github
deploy:
provider: pages
skip-cleanup: true
local-dir: dist
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
on:
branch: master