forked from openshift/openshift-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
86 lines (85 loc) · 3.19 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: python
cache: pip
# env:
# - PR_AUTHOR=${TRAVIS_PULL_REQUEST_SLUG::-15}
git:
depth: 1
jobs:
allow_failures:
env:
- CAN_FAIL=true
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.12 --no-upstream-fetch && python3 makeBuild.py
- # stage name not required, will continue to use `build`
if: branch IN (main, enterprise-4.12, enterprise-4.13)
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.12, enterprise-4.13)
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 name not required, will continue to use `build`
if: branch IN (main, enterprise-4.12, enterprise-4.13)
name: "Build microshift distro"
before_install:
- gem install asciidoctor
- gem install asciidoctor-diagram
install:
- pip3 install pyyaml
- pip3 install aura.tar.gz
script:
- python3 build.py --distro microshift --product "MicroShift" --version 4 --no-upstream-fetch && python3 makeBuild.py
- 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
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
- ./scripts/check-with-vale.sh
# Commenting out to disable auto-merging of PRs
# - stage: automerge
# if: env(PR_AUTHOR)=openshift-cherrypick-robot
# script: bash ./automerge.sh
- stage: netlify
env:
- CAN_FAIL=true
language: minimal
if: type IN (pull_request) AND branch IN (main, enterprise-4.12, enterprise-4.13) AND sender != "openshift-cherrypick-robot"
script:
- chmod +x autopreview.sh && ./autopreview.sh
stages:
- build
- netlify
- check-with-vale
#- automerge