forked from ng-alain/delon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
55 lines (46 loc) · 836 Bytes
/
.travis.yml
File metadata and controls
55 lines (46 loc) · 836 Bytes
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
sudo: required
dist: trusty
language: node_js
node_js:
- '10.9.0'
addons:
chrome: stable
git:
depth: 1
cache:
npm: true
directories:
- ./node_modules/
before_install:
- export NG_CLI_ANALYTICS=ci
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
jobs:
include:
- stage: pre
env: 'TASK=build_artifacts'
- stage: test
env: 'TASK=test'
- stage: test
env: 'TASK=lint'
- stage: test
env: 'TASK=site:build'
- stage: test
env: 'TASK=build'
- stage: test
env: 'TASK=test:cli'
stages:
- name: pre
if: branch = master
- name: test
if: branch = master
install:
- chmod +x -R scripts
- yarn
script:
- npm run $TASK
- |
if [ "$TASK" = "test" ]; then
cat ./coverage/lcov.info | ./node_modules/.bin/codecov
fi