-
Notifications
You must be signed in to change notification settings - Fork 586
/
.travis.yml
64 lines (55 loc) · 1.07 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
62
sudo: false
language: node_js
node_js: "8"
notifications:
email: false
git:
depth: 3
submodules: false
env:
global:
- LOGS_DIR=/tmp/logs
stages:
- name: precache
- name: lint
- name: test
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- rm -rf node_modules/ng2-select
install:
- npm install > /dev/null
- npm run build > /dev/null
- npm i ./dist > /dev/null
jobs:
fast_finish: true
include:
# precache npm and apt dependencies
- stage: precache
install: npm install > /dev/null
script: true
addons:
chrome: stable
apt:
sources:
- ubuntu-toolchain-r-test
# required by node-gyp to build some packages
packages:
- g++-4.8
# lint code
- stage: lint
install: true
script: npm run lint
# test
- &test
stage: test
script: npm run test-coverage
after_success:
- ./node_modules/.bin/codecov
#
cache:
apt: true
npm: true
directories:
- node_modules