1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

All in one stage

This commit is contained in:
Gaurav Nelson
2023-10-11 21:42:13 +10:00
committed by openshift-cherrypick-robot
parent cb22fdeb39
commit 3dc85b31db

View File

@@ -3,17 +3,15 @@ cache:
pip: true
directories:
- /home/travis/.rvm/gems
# env:
# - PR_AUTHOR=${TRAVIS_PULL_REQUEST_SLUG::-15}
git:
depth: 10
jobs:
allow_failures:
env:
- CAN_FAIL=true
include:
- stage: validate-and-build
name: "Validate and build"
name: "Preview, validate, and build"
before_install:
- chmod +x autopreview.sh
- ./autopreview.sh
install:
- gem install asciidoctor asciidoctor-diagram rouge
- pip3 install pyyaml aura.tar.gz
@@ -38,39 +36,3 @@ jobs:
done
if [ -d "drupal-build" ]; then python3 makeBuild.py; fi
# Remove Vale stage until PR commenting feature is ready
# - stage: check-with-vale
# env:
# - CAN_FAIL=true
# if: type IN (pull_request) AND sender != "openshift-cherrypick-robot"
# name: "Run Vale against PR asciidoc files"
# language: minimal
# script:
# - travis_retry wget https://github.com/errata-ai/vale/releases/download/v2.15.4/vale_2.15.4_Linux_64-bit.tar.gz --retry-connrefused
# - mkdir bin && tar -xvzf vale_2.15.4_Linux_64-bit.tar.gz -C bin
# - export PATH=./bin:"$PATH"
# - travis_retry vale sync # pull down VRH rules package
# - chmod +x ./scripts/check-with-vale.sh
# - ./scripts/check-with-vale.sh; fi
# Commenting out to disable auto-merging of PRs
# - stage: automerge
# if: env(PR_AUTHOR)=openshift-cherrypick-robot
# script: bash ./automerge.sh
- stage: netlify
name: "Build and deploy with Netlify"
env:
- CAN_FAIL=true
language: minimal
if: type IN (pull_request) AND branch IN (main, enterprise-4.13, enterprise-4.14) AND sender != "openshift-cherrypick-robot"
script:
- chmod +x autopreview.sh
- ./autopreview.sh
stages:
- netlify
- validate-and-build
#- check-with-vale
#- automerge