forked from optimistex/ngx-select-ex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (66 loc) · 1.27 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
63
64
65
66
67
68
69
70
71
72
73
74
75
sudo: required
language: node_js
node_js: "9"
branches:
only:
- master
notifications:
email: false
git:
depth: 3
submodules: false
env:
global:
- LOGS_DIR=/tmp/logs
stages:
- name: precache
- name: lint
- name: test
# - name: deploy
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- rm -rf node_modules/ngx-select-ex
install:
- npm install > /dev/null
- npm run build > /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
- stage: test
script: npm run test-coverage
after_success:
- ./node_modules/.bin/codecov
# deploy
# - stage: deploy
# deploy:
# provider: npm
# email: $NPM_EMAIL
# api_key: $NPM_TOKEN
# on:
# branch: master
# tags: true
# cache
cache:
apt: true
npm: true
directories:
- node_modules