-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
71 lines (55 loc) · 1.48 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
sudo: required
dist: trusty
language: node_js
node_js:
- '6.11'
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
- icnsutils
- graphicsmagick
cache:
directories:
- node_modules
- $HOME/.npm/_prebuilds
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- npm install -g @angular/cli
- npm install
script:
- echo 'Build Dist' && echo -en 'travis_fold:start:script.build\\r'
- ng build --base-href="./"
- echo -en 'travis_fold:end:script.build\\r'
- echo 'Lint Codebase' && echo -en 'travis_fold:start:script.lint\\r'
- npm run lint
- echo -en 'travis_fold:end:script.lint\\r'
- echo 'Test Codebase' && echo -en 'travis_fold:start:script.test\\r'
- ng test --single-run --code-coverage
- echo -en 'travis_fold:end:script.test\\r'
- echo 'Package Dist' && echo -en 'travis_fold:start:script.dist\\r'
- cd dist
- zip -r $TRAVIS_BUILD_DIR/dist.zip *
- cd $TRAVIS_BUILD_DIR
- sha256sum $TRAVIS_BUILD_DIR/dist.zip > $TRAVIS_BUILD_DIR/dist.zip.sha256sum.txt
- cat $TRAVIS_BUILD_DIR/dist.zip.sha256sum.txt
- echo -en 'travis_fold:end:script.dist\\r'
# Disable coveralls for now
after_script:
- npm run coveralls
#deploy:
# - provider: releases
# api-key:
# secure: <>
# file:
# - $TRAVIS_BUILD_DIR/dist.zip
# - $TRAVIS_BUILD_DIR/dist.zip.sha256sum.txt
# overwrite: true
# on:
# tags: true