diff --git a/.papr.yml b/.papr.yml deleted file mode 100644 index acf04e0..0000000 --- a/.papr.yml +++ /dev/null @@ -1,76 +0,0 @@ -cluster: - hosts: - - name: testnode - distro: fedora/28/atomic - container: - image: registry.fedoraproject.org/fedora:28 - -context: fedora/28/atomic - -packages: - - python-virtualenv - - python-pip - - git - - gcc - - redhat-rpm-config - - libselinux-python - - rsync - -tests: - # permanently set g_docker_latest=false, since Fedora doesn't have - # a docker-latest - - ./.test_director -e g_docker_latest=false - -artifacts: - - tests/improved-sanity-test/improved-sanity-test-testnode-journal - ---- -inherit: true - -cluster: - hosts: - - name: testnode - # TODO: switch this to 'stable' F29AH when it releases - distro: fedora/29/atomic/pungi - ostree: - branch: fedora/29/x86_64/testing/atomic-host - container: - image: registry.fedoraproject.org/fedora:28 - -context: fedora/29/atomic - -tests: - # permanently set g_docker_latest=false, since Fedora doesn't have - # a docker-latest - - ./.test_director -e g_docker_latest=false - ---- -inherit: true - -cluster: - hosts: - - name: testnode - distro: centos/7/atomic/continuous - container: - image: registry.fedoraproject.org/fedora:28 - -context: centos/7/atomic/continuous - -tests: - - ./.test_director - ---- -inherit: true - -cluster: - hosts: - - name: testnode - distro: centos/7/atomic - container: - image: registry.fedoraproject.org/fedora:28 - -context: centos/7/atomic - -tests: - - ./.test_director - diff --git a/.test_director b/.test_director deleted file mode 100755 index cdc68de..0000000 --- a/.test_director +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -set -xeuo pipefail - -VIRTUAL_ENV_DISABLE_PROMPT=1 - -if [ ! -d venv ]; then - virtualenv --system-site-packages venv -fi - -source venv/bin/activate - -pip install -r requirements.txt - -ansible --version - -NEW_TESTS=( $(git diff --name-only $(git merge-base origin/master HEAD) | grep 'tests/.*/main.yml' || true) ) - -# no new tests found, just run improved sanity test -if [ ${#NEW_TESTS[@]} -eq 0 ]; then - ansible-playbook --syntax-check tests/improved-sanity-test/main.yml - ansible-playbook -vi testnode, tests/improved-sanity-test/main.yml "$@" -else - # added or modified tests found, iterate through and run each one - printf '%s\n' "${NEW_TESTS[@]}" - for NEW_TEST in "${NEW_TESTS[@]}"; do - # diff may contain deleted tests so only run tests that exist - if [ -f $NEW_TEST ]; then - ansible-playbook --syntax-check $NEW_TEST - ansible-playbook -vi testnode, $NEW_TEST "$@" - fi - done -fi