|
3 | 3 | pip: true
|
4 | 4 | directories:
|
5 | 5 | - /home/travis/.rvm/gems
|
6 |
| -# env: |
7 |
| -# - PR_AUTHOR=${TRAVIS_PULL_REQUEST_SLUG::-15} |
| 6 | + |
8 | 7 | git:
|
9 | 8 | depth: 10
|
10 | 9 | jobs:
|
11 |
| - allow_failures: |
12 |
| - env: |
13 |
| - - CAN_FAIL=true |
14 | 10 | 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 |
17 | 15 | install:
|
18 | 16 | - gem install asciidoctor asciidoctor-diagram rouge
|
19 | 17 | - pip3 install pyyaml aura.tar.gz
|
|
38 | 36 | done
|
39 | 37 |
|
40 | 38 | 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