forked from Bartosz-D3V/ng-payment-card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (49 loc) · 1.11 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
dist: trusty
sudo: required
language: node_js
node_js:
- '8.9'
cache:
yarn: true
directories:
- ./node_modules
- $HOME/.cache/yarn
- $HOME/.npm
matrix:
fast_finish: true
before_script:
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- sleep 3
before_install:
- node --version
- export CHROME_BIN=/usr/bin/google-chrome
- 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
install:
- yarn install
script:
- npm run build-lib:prod
- npm run build-app:prod
- xvfb-run -a npm run e2e -- --prod --protractor-config=./e2e/protractor-ci.conf.js
- xvfb-run -a npm test --browser=ChromeNoSandbox
after_success:
- npm install -g codecov
- codecov -t $TOKEN
before_deploy:
- npm run compodoc
deploy:
provider: pages
local-dir: ./documentation/
skip-cleanup: true
github-token: $GH_TOKEN
keep-history: false
verbose: true
on:
branch: master
notifications:
email:
on_success: never
on_failure: change