forked from valor-software/ng2-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 871 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
41
42
43
44
45
dist: trusty
sudo: false
language: node_js
env:
- NG_CLI_ANALYTICS="ci"
node_js: "10"
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
directories:
- ./node_modules
- ~/.cache
- ~/.npm
install:
- npm ci
# Handle git submodules yourself
git:
submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
- export NG_CLI_ANALYTICS=ci
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
script:
- npm run install:financial
- npm run build:financial
- npm run build:lib
- npm run test -- --watch=false --no-progress --browsers=ChromeHeadless
- ng serve &
- $(npm bin)/wait-on http-get://localhost:4200/#
- npm run test:main
- npm run test:screenshot
- npm run test:canvas
- kill $(jobs -p) || true