From 0d3bc56e2d0532a2c62fd60d7a627941f45785b6 Mon Sep 17 00:00:00 2001 From: James Adams Date: Mon, 12 Jan 2026 11:30:57 +0000 Subject: [PATCH] Reuse shared workflows to run tests --- .ci-scripts/indent | 8 --- .ci-scripts/panlint | 8 --- .ci-scripts/test-library | 11 ----- .github/workflows/continuous-integration.yaml | 49 ++----------------- .travis-scripts/panlint | 8 --- .travis.yml | 12 ----- 6 files changed, 3 insertions(+), 93 deletions(-) delete mode 100755 .ci-scripts/indent delete mode 100755 .ci-scripts/panlint delete mode 100755 .ci-scripts/test-library delete mode 100755 .travis-scripts/panlint delete mode 100644 .travis.yml diff --git a/.ci-scripts/indent b/.ci-scripts/indent deleted file mode 100755 index 6524e12..0000000 --- a/.ci-scripts/indent +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -e # halt script on error - -rm -f /tmp/indent.py -wget -q https://raw.githubusercontent.com/stfc/Pan-Indenter/master/pan_indent_checker.py -O /tmp/indent.py -chmod u+x /tmp/indent.py - -git diff --name-only --diff-filter=d HEAD^ | grep '\.pan$' | xargs -rn1 /tmp/indent.py check || exit 1 diff --git a/.ci-scripts/panlint b/.ci-scripts/panlint deleted file mode 100755 index 42e7b7f..0000000 --- a/.ci-scripts/panlint +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -e # halt script on error - -rm -f /tmp/panlint.py -wget -q https://raw.githubusercontent.com/quattor/pan/master/panc/src/main/scripts/panlint/panlint.py -O /tmp/panlint.py -chmod u+x /tmp/panlint.py - -git diff --name-only --diff-filter=d HEAD^ | grep '\.pan$' | xargs -r /tmp/panlint.py || exit 1 diff --git a/.ci-scripts/test-library b/.ci-scripts/test-library deleted file mode 100755 index 6bb5bec..0000000 --- a/.ci-scripts/test-library +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -set -e # halt script on error - -# Retrieve last version of create-vanilla-SCDB from GitHub -echo "Downloading create-vanilla-SCDB from GitHub..." -rm -f /tmp/create-vanilla-SCDB.sh -wget -q https://raw.githubusercontent.com/quattor/scdb/master/utils/scdb/create-vanilla-SCDB.sh -O /tmp/create-vanilla-SCDB.sh -chmod u+x /tmp/create-vanilla-SCDB.sh - -/tmp/create-vanilla-SCDB.sh -F --continuous-integration HEAD diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 22bc397..c6efa4c 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -5,50 +5,7 @@ on: [push, pull_request] jobs: test-library: - runs-on: ubuntu-latest - container: ghcr.io/quattor/quattor-test-container:latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Install dependencies - run: dnf -y install subversion - - name: run tests - run: .ci-scripts/test-library - env: - TRAVIS_BUILD_DIR: "$GITHUB_WORKSPACE" - TRAVIS_REPO_SLUG: "$GITHUB_REPOSITORY" - TRAVIS_BRANCH: "${GITHUB_HEAD_REF:-master}" + uses: quattor/release/.github/workflows/vanilla-scdb.yaml@main - panlint: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - # we need the full repo or HEAD^ does not work - fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: 3 - - name: Install dependencies - run: pip install colorama prettytable six - - name: run panlint - run: .ci-scripts/panlint - - indentation: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - # we need the full repo or HEAD^ does not work - fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: 3 - - name: Install dependencies - run: pip install colorama - - name: run indent checker - run: .ci-scripts/indent + standard-pan: + uses: quattor/release/.github/workflows/pan-template-tests.yaml@main diff --git a/.travis-scripts/panlint b/.travis-scripts/panlint deleted file mode 100755 index b7ba142..0000000 --- a/.travis-scripts/panlint +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -e # halt script on error - -rm -f /tmp/panlint.py -wget -q https://raw.githubusercontent.com/quattor/pan/master/panc/src/main/scripts/panlint/panlint.py -O /tmp/panlint.py -chmod u+x /tmp/panlint.py - -git diff --name-only HEAD^ | grep '\.pan$' | xargs -r /tmp/panlint.py || exit 1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 61b65ce..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python - -python: - - "2.7" - -install: - - pip install -q colorama prettytable - -script: - - ./.travis-scripts/panlint - -sudo: false