commit: 80fc9ec1e9b72ecd7851b901116230398f77238e Author: Oskari Pirhonen <xxc3ncoredxx <AT> gmail <DOT> com> AuthorDate: Sat Apr 1 03:51:44 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Apr 7 09:50:00 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=80fc9ec1
ci: run the portage tests on sourcehut Run the Portage test suite for each Python version given in PYTHON_VERSIONS in the sourcehut build manifest. Currently skips PyPy tests, see bug #903709 Signed-off-by: Oskari Pirhonen <xxc3ncoredxx <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> .builds/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.builds/ci.yml b/.builds/ci.yml new file mode 100644 index 000000000..18cdbe47a --- /dev/null +++ b/.builds/ci.yml @@ -0,0 +1,39 @@ +# Maintainer: Oskari Pirhonen <[email protected]> + +image: ubuntu/jammy +shell: true +repositories: + # For more versions than just the default python3 + deadsnakes: https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy main "BA6932366A755776" + # Because Ubuntu have yet to fix: https://foss.hetapod.net/pypy/pypy/-/issues/3741 + # pypy: https://ppa.launchpadcontent.net/pypy/ppa/ubuntu jammy main "251104D968854915" +environment: + PYTHON_VERSIONS: + - '3.7' + - '3.8' + - '3.9' + - '3.10' + - '3.11' + # Testing PyPy is currently broken, see bug #903709 + # - 'pypy3' +tasks: + - setup-python: | + portage/.builds/setup-python.sh "${PYTHON_VERSIONS[@]}" + + - test-install: | + for py in "${PYTHON_VERSIONS[@]}"; do + source ".venv-$py/bin/activate" + pushd portage + time ./setup.py clean install + popd + deactivate + done + + - test-portage: | + for py in "${PYTHON_VERSIONS[@]}"; do + source ".venv-$py/bin/activate" + pushd portage + ./setup.py clean test + popd + deactivate + done
