.gitlab-ci.yml 937 Bytes
Newer Older
1 2 3
linux job:
    tags:
    - linux
Barry Warsaw's avatar
Barry Warsaw committed
4

5 6 7 8 9 10 11 12 13 14 15
    image: quay.io/python-devs/ci-image:master

    script:
    - tox


windows job:
    tags:
    - windows

    before_script:
Barry Warsaw's avatar
Barry Warsaw committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
    # Allow chocolatey to install without confirmation.
    - choco feature enable -n allowGlobalConfirmation
    # Install latest stable Python (currently 3.9).
    - choco install python -r
    # Add default Python and its scripts to the Path.
    - $ENV:Path+=";C:\Python39;C:\Python39\Scripts"
    # Install older Pythons.
    - choco install python -r --side-by-side --version=3.8.6
    - choco install python -r --side-by-side --version=3.7.9
    - choco install python -r --side-by-side --version=3.6.8
    # Upgrade/install the latest pip and tox.
    - py -m pip install --upgrade pip
    - py -3.8 -m pip install --upgrade pip
    - py -3.7 -m pip install --upgrade pip
    - py -3.6 -m pip install --upgrade pip
    - py -m pip install tox
32 33 34

    script:
    - tox