forked from openshift/openshift-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (66 loc) · 2.53 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: python
cache: pip
# env:
# - PR_AUTHOR=${TRAVIS_PULL_REQUEST_SLUG::-15}
git:
depth: 1
jobs:
include:
- stage: build
name: "Build openshift-enterprise distro"
before_install:
- gem install asciidoctor
- gem install asciidoctor-diagram
install:
- pip3 install pyyaml
- pip3 install aura.tar.gz
script:
- python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.11 --no-upstream-fetch && python3 makeBuild.py
- # stage name not required, will continue to use `build`
if: branch IN (main, enterprise-4.11, enterprise-4.12)
name: "Build openshift-dedicated distro"
before_install:
- gem install asciidoctor
- gem install asciidoctor-diagram
install:
- pip3 install pyyaml
- pip3 install aura.tar.gz
script:
- python3 build.py --distro openshift-dedicated --product "OpenShift Dedicated" --version 4 --no-upstream-fetch && python3 makeBuild.py
- # stage name not required, will continue to use `build`
if: branch IN (main, enterprise-4.11, enterprise-4.12)
name: "Build openshift-rosa distro"
before_install:
- gem install asciidoctor
- gem install asciidoctor-diagram
install:
- pip3 install pyyaml
- pip3 install aura.tar.gz
script:
- python3 build.py --distro openshift-rosa --product "Red Hat OpenShift Service on AWS" --version 4 --no-upstream-fetch && python3 makeBuild.py
- stage: check-with-vale
if: type IN (pull_request)
name: "Run Vale against PR asciidoc files"
before_script:
- gem install asciidoctor
script:
- travis_retry wget https://github.com/errata-ai/vale/releases/download/v2.20.1/vale_2.20.1_Linux_64-bit.tar.gz --retry-connrefused
- mkdir bin && tar -xvzf vale_2.20.1_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
- travis_retry ./scripts/check-with-vale.sh $TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST_SHA
# Commenting out to disable auto-merging of PRs
# - stage: automerge
# if: env(PR_AUTHOR)=openshift-cherrypick-robot
# script: bash ./automerge.sh
- stage: netlify
language: minimal
if: branch IN (main, enterprise-4.11, enterprise-4.12)
script:
- chmod +x autopreview.sh && ./autopreview.sh
stages:
- build
- netlify
- check-with-vale
#- automerge