Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Refactor .travis.yml CI configuration #1806

Merged
merged 3 commits into from
Mar 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
language: node_js
sudo: required
notifications:
email: false
node_js:
- '16'
- "16"
install:
- npm ci
jobs:
include:
- stage: Lint, tests
script: npm run verify && npm run test:ct && npm run coverage
- stage: Release tag
if: fork = false
script: npx semantic-release
after_success:
- curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master/src/bootstrap.sh | bash -s
- 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: 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:
global:
- REPO="[email protected]:RedHatInsights/insights-inventory-frontend-build"
- REPO_DIR="insights-inventory-frontend-build"
- BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
- BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}