0
0
Fork 0
mirror of https://github.com/alerta/alerta-webui.git synced 2025-03-18 06:12:51 +00:00
alerta_alerta-webui/.travis.yml

44 lines
802 B
YAML
Raw Permalink Normal View History

2019-01-17 17:07:37 +00:00
language: node_js
node_js:
2019-03-07 10:37:00 +00:00
- '8'
2019-01-17 17:07:37 +00:00
cache:
directories:
2019-03-07 10:37:00 +00:00
- node_modules
install:
- npm install
2019-01-17 17:07:37 +00:00
2019-03-06 23:45:23 +00:00
script:
2019-03-07 10:37:00 +00:00
- npm run lint:nofix
- npm run test:unit
- npm run build
2019-03-06 23:45:23 +00:00
before_deploy:
2019-03-07 10:37:00 +00:00
- zip alerta-web-beta.zip -r dist/*
- tar cvfz alerta-web-beta.tar.gz dist/*
2019-03-06 23:45:23 +00:00
jobs:
include:
2019-03-07 10:37:00 +00:00
- stage: deploy
before_script: echo VUE_APP_ALERTA_ENDPOINT=https://alerta-api.herokuapp.com > .env
script: npm run build
deploy:
- provider: pages
skip-cleanup: true
github-token: "$GITHUB_TOKEN"
target-branch: gh-pages
local-dir: dist
on:
branch: master
- stage: release
deploy:
- provider: releases
skip-cleanup: true
api_key: "$GITHUB_TOKEN"
file:
- alerta-web-beta.zip
- alerta-web-beta.tar.gz
on:
tags: true