0
0
Fork 0
mirror of https://github.com/alerta/alerta-webui.git synced 2025-03-16 21:43:29 +00:00
alerta_alerta-webui/.travis.yml
2019-03-07 13:58:41 +01:00

43 lines
802 B
YAML

language: node_js
node_js:
- '8'
cache:
directories:
- node_modules
install:
- npm install
script:
- npm run lint:nofix
- npm run test:unit
- npm run build
before_deploy:
- zip alerta-web-beta.zip -r dist/*
- tar cvfz alerta-web-beta.tar.gz dist/*
jobs:
include:
- 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