Skip to content

Commit 2e0cefa

Browse files
committed
All in one stage
1 parent 5163558 commit 2e0cefa

File tree

1 file changed

+5
-43
lines changed

1 file changed

+5
-43
lines changed

.travis.yml

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ cache:
33
pip: true
44
directories:
55
- /home/travis/.rvm/gems
6-
# env:
7-
# - PR_AUTHOR=${TRAVIS_PULL_REQUEST_SLUG::-15}
6+
87
git:
98
depth: 10
109
jobs:
11-
allow_failures:
12-
env:
13-
- CAN_FAIL=true
1410
include:
15-
- stage: validate-and-build
16-
name: "Validate and build"
11+
name: "Preview, validate, and build"
12+
before_install:
13+
- chmod +x autopreview.sh
14+
- ./autopreview.sh
1715
install:
1816
- gem install asciidoctor asciidoctor-diagram rouge
1917
- pip3 install pyyaml aura.tar.gz
@@ -38,39 +36,3 @@ jobs:
3836
done
3937
4038
if [ -d "drupal-build" ]; then python3 makeBuild.py; fi
41-
42-
# Remove Vale stage until PR commenting feature is ready
43-
# - stage: check-with-vale
44-
# env:
45-
# - CAN_FAIL=true
46-
# if: type IN (pull_request) AND sender != "openshift-cherrypick-robot"
47-
# name: "Run Vale against PR asciidoc files"
48-
# language: minimal
49-
# script:
50-
# - 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
51-
# - mkdir bin && tar -xvzf vale_2.15.4_Linux_64-bit.tar.gz -C bin
52-
# - export PATH=./bin:"$PATH"
53-
# - travis_retry vale sync # pull down VRH rules package
54-
# - chmod +x ./scripts/check-with-vale.sh
55-
# - ./scripts/check-with-vale.sh; fi
56-
57-
# Commenting out to disable auto-merging of PRs
58-
# - stage: automerge
59-
# if: env(PR_AUTHOR)=openshift-cherrypick-robot
60-
# script: bash ./automerge.sh
61-
62-
- stage: netlify
63-
name: "Build and deploy with Netlify"
64-
env:
65-
- CAN_FAIL=true
66-
language: minimal
67-
if: type IN (pull_request) AND branch IN (main, enterprise-4.13, enterprise-4.14) AND sender != "openshift-cherrypick-robot"
68-
script:
69-
- chmod +x autopreview.sh
70-
- ./autopreview.sh
71-
72-
stages:
73-
- netlify
74-
- validate-and-build
75-
#- check-with-vale
76-
#- automerge

0 commit comments

Comments
 (0)