Skip to content

Commit

Permalink
Merge pull request #246 from tonyskapunk/docker_mirror
Browse files Browse the repository at this point in the history
Update pipeline
  • Loading branch information
tonyskapunk authored Jun 18, 2021
2 parents e69c565 + fb6dc65 commit bf9c256
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
28 changes: 16 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
language: bash
dist: xenial
dist: focal
sudo: enabled
branches:
only:
Expand All @@ -13,36 +13,42 @@ matrix:
- name: "CentOS 7"
env:
- DISTRO='centos:7'
- REGISTRY=quay.io/centos
- name: "CentOS 8"
env:
- DISTRO='centos:8'
- name: "Ubuntu 14.04 (trusty)"
- REGISTRY=quay.io/centos
- name: "CentOS stream 8"
env:
- DISTRO='ubuntu:14.04'
- name: "Ubuntu 16.04 (xenial)"
env:
- DISTRO='ubuntu:16.04'
- DISTRO='centos:stream8'
- REGISTRY=quay.io/centos
- name: "Ubuntu 18.04 (bionic)"
env:
- DISTRO='ubuntu:18.04'
- REGISTRY=mirror.gcr.io/library
- name: "Ubuntu 20.04 (focal)"
env:
- DISTRO='ubuntu:20.04'
- REGISTRY=mirror.gcr.io/library
- name: "Debian 9 (stretch)"
env:
- DISTRO='debian:9'
- name: "Debian (buster)"
- DISTRO='debian:stretch'
- REGISTRY=mirror.gcr.io/library
- name: "Debian 10 (buster)"
env:
- DISTRO='debian:buster'
- REGISTRY=mirror.gcr.io/library
- name: "Fedora (latest)"
env:
- DISTRO='fedora:latest'
- REGISTRY=registry.fedoraproject.org
- name: "Fedora (rawhide)"
env:
- DISTRO='fedora:rawhide'
- REGISTRY=registry.fedoraproject.org

before_install:
- docker pull ${DISTRO}
- docker pull ${REGISTRY}/${DISTRO}

install:
- |
Expand All @@ -54,7 +60,7 @@ install:
--network=host \
--name recap_on_${DISTRO/:/_} \
--mount type=bind,src="$(pwd)",dst=/recap \
${DISTRO}
${REGISTRY}/${DISTRO}
- docker exec recap_on_${DISTRO/:/_} /recap/tests/install_deps.sh ${DISTRO}
- docker exec recap_on_${DISTRO/:/_} /recap/tests/test_install_recap.sh

Expand All @@ -73,5 +79,3 @@ script:
- docker exec recap_on_${DISTRO/:/_} bash -c 'recap -p disable all'
- docker exec recap_on_${DISTRO/:/_} bash -c 'recap -p list disabled'
- docker exec recap_on_${DISTRO/:/_} bash -c 'recap -p list enabled'

...
6 changes: 5 additions & 1 deletion tests/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ case ${DISTRO} in
"psmisc"
"iproute"
)
if [[ ${DISTRO/*:/} -ge 8 ]]; then
version=$(grep -Po "[0-9]+" <<<${DISTRO/*:/})
if [[ ${version} -ge 8 ]]; then
packages+=(
"procps-ng"
)
extra_args+="--enablerepo=powertools "
fi
yum install --assumeyes ${extra_args} ${packages[@]} || exit $?
Expand Down
2 changes: 1 addition & 1 deletion tools/ansible_recap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
state: link
with_items: "{{ plugin_list }}"

when: enable_plugins
when: enable_plugins|bool

- name: Enable systemd timers
systemd:
Expand Down

0 comments on commit bf9c256

Please sign in to comment.