-
Notifications
You must be signed in to change notification settings - Fork 46
/
.travis.yml
44 lines (40 loc) · 1.04 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
language: node_js
node_js:
- '18'
dist: bionic
addons:
chrome: stable
cache:
directories:
- node_modules
install:
- npm install
jobs:
include:
- stage: build
script:
- ng lint
name: check app by linter
- script:
- npm run stylelint
name: check styles by linter
- script:
- ng test --watch=false --progress=false --browsers=ChromeHeadless
name: test app
- script:
- ng e2e --protractor-config=e2e/protractor-ci.conf.js
name: test e2e
- script:
- ng build --prod --delete-output-path --base-href=/GreenCityClient/ --outputPath=dist_aot && rm -rf dist_aot
name: build app using aot compilation
- stage: deploy
script: ng build --prod --base-href=/GreenCityClient/ --aot=false --build-optimizer=false
name: deploy on gh_pages
if: branch IN (dev, master)
deploy:
provider: pages
github_token: $TRAVIS_GH_TOKEN
skip_cleanup: true
local_dir: dist/GreenCityClient
on:
branch: dev