forked from AhsanAyaz/ngx-device-detector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (30 loc) · 796 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
language: node_js
sudo: true
node_js:
- "12.16.3"
demo/dist: xenial
branches:
only:
- master
before_script:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sudo apt-get update
- wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/
- sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
services:
- xvfb
script:
- npm run lint
- npm install
- node_modules/.bin/ng test --project ngx-device-detector --watch=false --code-coverage
- node_modules/.bin/webdriver-manager update
- npm run build:both:ci
- cp -R dist/demo/browser ./docs/demo
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
local_dir: docs
on:
branch: master