feat(almalinux-8): add CI for platform

This commit is contained in:
Imran Iqbal 2021-06-25 23:28:38 +01:00 committed by Kirill Ponomarev
parent 0612b49bd6
commit 4777897146
3 changed files with 148 additions and 0 deletions

View file

@ -44,6 +44,144 @@ jobs:
shellcheck -s sh -f tty bootstrap-salt.sh
py3-git-3002-almalinux-8:
name: AlmaLinux 8 v3002 Py3 Git
runs-on: ubuntu-latest
timeout-minutes: 20
needs: lint
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Install Bundler
run: |
gem install bundler
- name: Setup Bundle
run: |
bundle install --with docker --without opennebula ec2 windows vagrant
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Python Dependencies
run: |
pip install -U pip
pip install -r tests/requirements.txt
- name: Create Test Container
run: |
bundle exec kitchen create py3-git-3002-almalinux-8 || bundle exec kitchen create py3-git-3002-almalinux-8
- name: Test Bootstrap In Test Container
run: |
bundle exec kitchen verify py3-git-3002-almalinux-8
- name: Destroy Test Container
if: always()
run: |
bundle exec kitchen destroy py3-git-3002-almalinux-8
py3-git-master-almalinux-8:
name: AlmaLinux 8 Master Py3 Git
runs-on: ubuntu-latest
timeout-minutes: 20
needs: lint
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Install Bundler
run: |
gem install bundler
- name: Setup Bundle
run: |
bundle install --with docker --without opennebula ec2 windows vagrant
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Python Dependencies
run: |
pip install -U pip
pip install -r tests/requirements.txt
- name: Create Test Container
run: |
bundle exec kitchen create py3-git-master-almalinux-8 || bundle exec kitchen create py3-git-master-almalinux-8
- name: Test Bootstrap In Test Container
run: |
bundle exec kitchen verify py3-git-master-almalinux-8
- name: Destroy Test Container
if: always()
run: |
bundle exec kitchen destroy py3-git-master-almalinux-8
latest-almalinux-8:
name: AlmaLinux 8 Latest packaged release
runs-on: ubuntu-latest
timeout-minutes: 20
needs: lint
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Install Bundler
run: |
gem install bundler
- name: Setup Bundle
run: |
bundle install --with docker --without opennebula ec2 windows vagrant
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Python Dependencies
run: |
pip install -U pip
pip install -r tests/requirements.txt
- name: Create Test Container
run: |
bundle exec kitchen create latest-almalinux-8 || bundle exec kitchen create latest-almalinux-8
- name: Test Bootstrap In Test Container
run: |
bundle exec kitchen verify latest-almalinux-8
- name: Destroy Test Container
if: always()
run: |
bundle exec kitchen destroy latest-almalinux-8
py3-stable-3000-amazon-2:
name: Amazon 2 v3000 Py3 Stable
runs-on: ubuntu-latest

View file

@ -6,6 +6,7 @@ import datetime
os.chdir(os.path.abspath(os.path.dirname(__file__)))
LINUX_DISTROS = [
"almalinux-8",
"amazon-2",
"arch",
"centos-7",
@ -49,6 +50,7 @@ STABLE_DISTROS = [
]
PY2_BLACKLIST = [
"almalinux-8",
"centos-8",
"debian-10",
"debian-11",
@ -66,6 +68,7 @@ PY2_BLACKLIST = [
]
BLACKLIST_3000 = [
"almalinux-8",
"debian-11",
"fedora-33",
"fedora-34",
@ -77,12 +80,14 @@ BLACKLIST_3000 = [
]
BLACKLIST_3001 = [
"almalinux-8",
"debian-11",
"rockylinux-8",
"ubuntu-2104",
]
BLACKLIST_3001_0 = [
"almalinux-8",
"debian-11",
"gentoo",
"gentoo-systemd",
@ -91,6 +96,7 @@ BLACKLIST_3001_0 = [
]
BLACKLIST_3002_0 = [
"almalinux-8",
"debian-11",
"gentoo",
"gentoo-systemd",
@ -123,6 +129,7 @@ STABLE_BRANCH_BLACKLIST = []
LATEST_PKG_BLACKLIST = []
DISTRO_DISPLAY_NAMES = {
"almalinux-8": "AlmaLinux 8",
"amazon-2": "Amazon 2",
"arch": "Arch",
"centos-7": "CentOS 7",

View file

@ -28,6 +28,9 @@ provisioner:
sh -c 't=$(shuf -i 1-15 -n 1); echo Sleeping $t seconds; sleep $t'
platforms:
- name: almalinux-8
driver_config:
run_command: /usr/lib/systemd/systemd
- name: amazon-2
driver_config:
image: amazonlinux:2