forked from redhat-cop/containers-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
50 lines (43 loc) · 1.48 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
dist: xenial
language: python
python:
- "3.7"
addons:
apt:
packages:
- nodejs
- npm
cache:
directories:
- $HOME/.cache/pip
env:
global:
- ANSIBLE_HOST_KEY_CHECKING=False
- PIP_DOWNLOAD_CACHE=$HOME/.cache/pip
- OC_BINARY_URL=https://mirror.openshift.com/pub/openshift-v3/clients/3.10.45/linux/oc.tar.gz
- ANSIBLE_VERSION="2.7"
before_install:
- sudo apt-get update -qq
install:
- pip install -U pip
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible~=$ANSIBLE_VERSION; fi
#- pip install "ansible-lint<4.0" yamllint flake8 molecule docker "pytest<3.10" "testinfra==3.0.4"
# Configure OpenShift Binary
- sudo wget -qO- ${OC_BINARY_URL} | sudo tar -xvz -C /bin
# Install hyperlink checker
- npm install -g markdown-link-check
before_script:
# Check for dead-links in the docs
- find . -type f -name "*.md" -exec markdown-link-check --quiet --config linkcheck-config.json {} \;
# Configure Docker
- sudo service docker stop
- sudo mkdir -p /etc/docker
- echo '{"insecure-registries":["172.30.0.0/16"]}' | sudo tee /etc/docker/daemon.json
- sudo service docker start
# Launch OpenShift Environment
- _test/setup.sh cluster_up
# Run Applier to provision all of the builds
- _test/setup.sh applier cqci-${TRAVIS_JOB_ID} ${TRAVIS_REPO_SLUG} ${TRAVIS_BRANCH}
script:
# Test to ensure that builds all succeed
- _test/setup.sh test cqci-${TRAVIS_JOB_ID} ${TRAVIS_REPO_SLUG} ${TRAVIS_BRANCH}