forked from selemxmn/ngx-print
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 777 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
language: node_js
sudo: false
dist: trusty
node_js:
- '10.14.2'
addons:
packages:
- unzip
- google-chrome-stable
cache:
yarn: true
directories:
- node_modules
before_install:
- sudo apt-get clean
- sudo apt-get update
- sudo apt-get install dpkg
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- yarn install
after_failure:
- cat /home/travis/build/selemxmn/ngx-print/yarn-error.log
after_success:
- cat ./dist/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
notifications:
email: false
script:
- yarn run test && yarn run build