forked from mledour/angular-admin-lte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (38 loc) · 1.08 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
language: node_js
node_js:
- "10"
dist: trusty
sudo: false
env:
global:
- TMPDIR=/tmp
cache:
yarn: true
directories:
- node_modules
addons:
chrome: stable
before_script:
- yarn global add @angular/cli
- yarn global add coveralls
script:
- ng lint angular-admin-lte-demo
- ng lint angular-admin-lte
- ng test angular-admin-lte-demo --watch=false --browsers=ChromeHeadless --code-coverage
# - ng test angular-admin-lte --watch=false --browsers=ChromeHeadless
- ng build angular-admin-lte-demo --prod --base-href="/angular-admin-lte/$([ "$TRAVIS_PULL_REQUEST" != false ] && echo "pulls/$TRAVIS_PULL_REQUEST/" || echo "branches/$TRAVIS_BRANCH/")"
- ng build angular-admin-lte --prod
# - xvfb-run npm run e2e
after_success:
- cat coverage/lcov.info | coveralls
- bash scripts/gh-pages.sh $TMPDIR/gh-pages $TRAVIS_BUILD_DIR/dist/angular-admin-lte-demo
before_deploy:
- cp README.md LICENSE dist/angular-admin-lte
- cd dist/angular-admin-lte
deploy:
provider: npm
email: "[email protected]"
api_key: $NPM_TOKEN
skip_cleanup: true
on:
tags: true