This repository has been archived by the owner on Mar 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.66 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
language: node_js
node_js: '10'
addons:
chrome: stable
before_install:
- npm i -g @angular/cli
jobs:
include:
- stage: test and code quality
name: "test and code quality"
script:
- ng test --no-progress --code-coverage --karma-config karma.conf.js
- ng lint Amy-Webapp --format json > tsLintReport.json || true
- sonar-scanner
addons:
sonarcloud:
organization: "amyassist"
token: $SONAR_TOKEN
- stage: deploy
name: "Docker"
before_install: skip
install: skip
script: docker build . -t amy-web-ci
- name: "Depoly GitHub Pages"
if: branch = master
script: ng build --prod --no-progress --base-href=/Amy-Web/
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.com dashboard
local_dir: dist/Amy-Webapp/
on:
branch: master
notifications:
slack:
secure: zgJRTyEJvfnxv/J3wGECXb1DwchogD+suEN6OdjOK+VjzUZ96tpG959+Z6mVwsnh7UGacVSbA5BEMobpEd5EcG9Pv3PpJRAzkI0fu82EIYd57Nlh4aoovQvCQTZovEQh0jMxkRcPxRw9npeGAuHKP5EEYE8pbNEJgC0RwxV5qKIEo/sEFog9p0Mnbrxx9KPaS57AL/gEX+F7zvsPmffweSOVT4VvUKjCYskLD7OmHDHj7y3BllXGIyZpgYRViXsJUFCN70z8/7SAM4TyXx8u8OtaauLElwI4HINHxqoZLAqQNHGqJVXbncJfLtfLvOEkNY+tVwlBSCy+RNwvE5LwH0CeaJoYtQO2OZLFgk2EugouukVWFPuHvG1xF0Xk3EWZDjjFiGvDcbOaOQ1AwGdJQf1GDeC04/fDo0vvTuGeq4vilZ/OEbteb8bNcRpfUat+wz4OG5yTD2uF4p1YLBjeCsiU9RK8xsE1bjN97BOXF1ffpik1fkXcLp5Nove7j2urYOwLyR9aT9sWAA2bMyYRUfXmB9X1d0wYtr+rF5IRRQ2DNkpElouZqlJ90Y9n9e94B2G5+gZ4vP1UWcQGm3rwP49o7pwC8uNug0fQHuUKu6V5ykhucG3N81CkhcK9hsh0+OKrouCf4wirsft3GBZRHkydDaI8zAtXN7QHHTimWtU=
on_success: change
on_failure: always