diff --git a/.travis.yml b/.travis.yml index 087970eb9..da2e65c65 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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="git@github.com:RedHatInsights/insights-inventory-frontend-build" - REPO_DIR="insights-inventory-frontend-build" - - BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} \ No newline at end of file + - BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}