From 478b28bb3a2dbc0e914eb693357e431d824287c3 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Sat, 13 Feb 2021 13:41:20 +0000 Subject: [PATCH] ci(oraclelinux): add CI for Oracle Linux 7 --- .github/workflows/main.yml | 460 ++++++++++++++++++++++++ .github/workflows/templates/generate.py | 3 + .kitchen.yml | 3 + 3 files changed, 466 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 057d4e5..1299874 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3448,6 +3448,466 @@ jobs: bundle exec kitchen destroy latest-opensuse-tumbleweed + py3-stable-3000-oraclelinux-7: + name: Oracle Linux 7 v3000 Py3 Stable + 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-stable-3000-oraclelinux-7 || bundle exec kitchen create py3-stable-3000-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3000-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3000-oraclelinux-7 + + + py3-git-3000-oraclelinux-7: + name: Oracle Linux 7 v3000 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-3000-oraclelinux-7 || bundle exec kitchen create py3-git-3000-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3000-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3000-oraclelinux-7 + + + py3-stable-3001-oraclelinux-7: + name: Oracle Linux 7 v3001 Py3 Stable + 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-stable-3001-oraclelinux-7 || bundle exec kitchen create py3-stable-3001-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3001-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3001-oraclelinux-7 + + + py3-git-3001-oraclelinux-7: + name: Oracle Linux 7 v3001 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-3001-oraclelinux-7 || bundle exec kitchen create py3-git-3001-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3001-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3001-oraclelinux-7 + + + py3-stable-3001-0-oraclelinux-7: + name: Oracle Linux 7 v3001.0 Py3 Stable + 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-stable-3001-0-oraclelinux-7 || bundle exec kitchen create py3-stable-3001-0-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3001-0-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3001-0-oraclelinux-7 + + + py3-stable-3002-oraclelinux-7: + name: Oracle Linux 7 v3002 Py3 Stable + 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-stable-3002-oraclelinux-7 || bundle exec kitchen create py3-stable-3002-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3002-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3002-oraclelinux-7 + + + py3-git-3002-oraclelinux-7: + name: Oracle Linux 7 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-oraclelinux-7 || bundle exec kitchen create py3-git-3002-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-3002-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-3002-oraclelinux-7 + + + py3-stable-3002-0-oraclelinux-7: + name: Oracle Linux 7 v3002.0 Py3 Stable + 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-stable-3002-0-oraclelinux-7 || bundle exec kitchen create py3-stable-3002-0-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-stable-3002-0-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-stable-3002-0-oraclelinux-7 + + + py3-git-master-oraclelinux-7: + name: Oracle Linux 7 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-oraclelinux-7 || bundle exec kitchen create py3-git-master-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify py3-git-master-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy py3-git-master-oraclelinux-7 + + + latest-oraclelinux-7: + name: Oracle Linux 7 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-oraclelinux-7 || bundle exec kitchen create latest-oraclelinux-7 + + - name: Test Bootstrap In Test Container + run: | + bundle exec kitchen verify latest-oraclelinux-7 + + - name: Destroy Test Container + if: always() + run: | + bundle exec kitchen destroy latest-oraclelinux-7 + + py3-stable-3000-ubuntu-1604: name: Ubuntu 16.04 v3000 Py3 Stable runs-on: ubuntu-latest diff --git a/.github/workflows/templates/generate.py b/.github/workflows/templates/generate.py index d6643dc..68cbde9 100755 --- a/.github/workflows/templates/generate.py +++ b/.github/workflows/templates/generate.py @@ -19,6 +19,7 @@ LINUX_DISTROS = [ "gentoo-systemd", "opensuse-15", "opensuse-tumbleweed", + "oraclelinux-7", "ubuntu-1604", "ubuntu-1804", "ubuntu-2004", @@ -36,6 +37,7 @@ STABLE_DISTROS = [ "fedora-33", "gentoo", "gentoo-systemd", + "oraclelinux-7", "ubuntu-1604", "ubuntu-1804", "ubuntu-2004", @@ -117,6 +119,7 @@ DISTRO_DISPLAY_NAMES = { "gentoo-systemd": "Gentoo (systemd)", "opensuse-15": "Opensuse 15", "opensuse-tumbleweed": "Opensuse Tumbleweed", + "oraclelinux-7": "Oracle Linux 7", "ubuntu-1604": "Ubuntu 16.04", "ubuntu-1804": "Ubuntu 18.04", "ubuntu-2004": "Ubuntu 20.04", diff --git a/.kitchen.yml b/.kitchen.yml index ffe2d4c..88d2524 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -105,6 +105,9 @@ platforms: - systemctl enable sshd.service provisioner: salt_bootstrap_options: -MPfq -y -x python3 git %s + - name: oraclelinux-7 + driver_config: + run_command: /usr/lib/systemd/systemd - name: ubuntu-20.04 driver_config: run_command: /lib/systemd/systemd