This repository has been archived by the owner on Apr 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (78 loc) · 2.31 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
76
77
78
language: node_js
addons:
chrome: stable
env:
matrix:
- TEST_SUITE=lint
- TEST_SUITE=build
- TEST_SUITE=unit
- TEST_SUITE=docs
node_js:
- stable
cache:
directories:
- node_modules
before_script:
- npm run postinstall
- cp ./src/environments/environment.example.ts ./src/environments/environment.prod.ts
- cp ./src/environments/environment.example.ts ./src/environments/environment.ts
- cp ./src/environments/environment.example.ts ./src/environments/environment.dev.ts
script:
- npm run test:$TEST_SUITE
after_success:
- npm install coveralls && cat ./coverage/lcov.info | coveralls
jobs:
include:
- stage: npm release
node_js: stable
script:
- npm run build
- cp ./src/environments/environment.example.ts ./src/environments/environment.prod.ts
- cp ./src/environments/environment.example.ts ./src/environments/environment.ts
- cp ./src/environments/environment.example.ts ./src/environments/environment.dev.ts
- ng build --aot --prod --base-href=/
if: tag IS present
before_deploy:
- npm run create-publish-package
- cp -rf ./publish-package.json package.json
deploy:
provider: npm
skip_cleanup: true
email: $npm_email
api_key: $npm_api_key
on:
tags: true
repo: donmahallem/TrapezeClientNg
- stage: npm release pwa
node_js: stable
script:
- npm run build
- cp ./src/environments/environment.example.pwa.ts ./src/environments/environment.prod.ts
- cp ./src/environments/environment.example.pwa.ts ./src/environments/environment.ts
- cp ./src/environments/environment.example.pwa.ts ./src/environments/environment.dev.ts
- ng build --aot --prod --base-href=/
if: tag IS present
before_deploy:
- npm run create-publish-package pwa
- cp -rf ./publish-package.json package.json
deploy:
provider: npm
skip_cleanup: true
email: $npm_email
api_key: $npm_api_key
on:
tags: true
repo: donmahallem/TrapezeClientNg
- stage: Publish docs on github
node_js: stable
script:
- npm run compodoc
if: branch = master
deploy:
provider: pages
skip-cleanup: true
local-dir: docs
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: master