@@ -2,10 +2,12 @@ language: python
2
2
cache : pip
3
3
# env:
4
4
# - PR_AUTHOR=${TRAVIS_PULL_REQUEST_SLUG::-15}
5
-
5
+ git :
6
+ depth : 1
6
7
jobs :
7
8
include :
8
9
- stage : build
10
+ name : " Build openshift-enterprise distro"
9
11
before_install :
10
12
- gem install asciidoctor
11
13
- gem install asciidoctor-diagram
16
18
- python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.11 --no-upstream-fetch && python3 makeBuild.py
17
19
- # stage name not required, will continue to use `build`
18
20
if : branch IN (main, enterprise-4.11, enterprise-4.12)
21
+ name : " Build openshift-dedicated distro"
19
22
before_install :
20
23
- gem install asciidoctor
21
24
- gem install asciidoctor-diagram
26
29
- python3 build.py --distro openshift-dedicated --product "OpenShift Dedicated" --version 4 --no-upstream-fetch && python3 makeBuild.py
27
30
- # stage name not required, will continue to use `build`
28
31
if : branch IN (main, enterprise-4.11, enterprise-4.12)
32
+ name : " Build openshift-rosa distro"
29
33
before_install :
30
34
- gem install asciidoctor
31
35
- gem install asciidoctor-diagram
@@ -34,11 +38,24 @@ jobs:
34
38
- pip3 install aura.tar.gz
35
39
script :
36
40
- python3 build.py --distro openshift-rosa --product "Red Hat OpenShift Service on AWS" --version 4 --no-upstream-fetch && python3 makeBuild.py
41
+ - stage : check-with-vale
42
+ if : type IN (pull_request)
43
+ name : " Run Vale against PR asciidoc files"
44
+ before_script :
45
+ - gem install asciidoctor
46
+ script :
47
+ - wget https://github.com/errata-ai/vale/releases/download/v2.20.1/vale_2.20.1_Linux_64-bit.tar.gz
48
+ - mkdir bin && tar -xvzf vale_2.20.1_Linux_64-bit.tar.gz -C bin
49
+ - export PATH=./bin:"$PATH"
50
+ - vale sync # pull down VRH rules package
51
+ - chmod +x ./scripts/check-with-vale.sh
52
+ - ./scripts/check-with-vale.sh $TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST_SHA
37
53
# Commenting out to disable auto-merging of PRs
38
54
# - stage: automerge
39
55
# if: env(PR_AUTHOR)=openshift-cherrypick-robot
40
56
# script: bash ./automerge.sh
41
57
42
58
stages :
43
59
- build
44
- # - automerge
60
+ - check-with-vale
61
+ # - automerge
0 commit comments