From 3dc85b31dbbc8d8b381092a6804f07e0b620fa6a Mon Sep 17 00:00:00 2001 From: Gaurav Nelson Date: Wed, 11 Oct 2023 21:42:13 +1000 Subject: [PATCH] All in one stage --- .travis.yml | 48 +++++------------------------------------------- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8786c2b63c..06d63d4df7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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