aboutsummaryrefslogtreecommitdiff
blob: 797aea074a82a8d37a9be8a4224496a48b15b47e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Oskari Pirhonen <xxc3ncoredxx@gmail.com>

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[@]}"

  - setup-tests: |
      for py in "${PYTHON_VERSIONS[@]}"; do
        source ".venv-$py/bin/activate"
        pip install pytest
        deactivate
      done

  - 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