generated from RedHatInsights/frontend-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.travis.yml
27 lines (27 loc) · 852 Bytes
/
.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
language: node_js
notifications:
email: false
sudo: required
node_js:
- "16"
install:
- npm ci
if: tag IS blank
jobs:
include:
- stage: Lint
script: npm run build && npm run lint
- stage: Test
script: npm run test && npm run test:ct
after_success: npm run coverage
- stage: Deploy
if: (fork = false) AND (branch IN (master, master-stable, prod-beta, prod-stable))
script: npm run build && curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master/src/bootstrap.sh | bash -s
- stage: Tag
if: (fork = false) AND (branch = master)
script: npx semantic-release
env:
global:
- REPO="[email protected]:RedHatInsights/ocp-advisor-frontend-build"
- REPO_DIR="ocp-advisor-frontend-build"
- BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}