Skip to content

Commit

Permalink
cirrus: Use built wheel in all tasks
Browse files Browse the repository at this point in the history
Can't easily install git into the windows container, so just use the built wheel

Co-authored-by: Nicolas Braud-Santoni <nicolas@braud-santoni.eu>
  • Loading branch information
AstraLuma and nbraud committed Feb 19, 2020
1 parent 75d4456 commit 7a12fad
Showing 1 changed file with 36 additions and 29 deletions.
65 changes: 36 additions & 29 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
docs_task:
pep517_task:
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
container:
image: python:3.7

install_script:
- apt update || true ; apt install -qq -y make
- pip install --upgrade-strategy eager -U -r requirements-docs.txt
- pip install .
- pip install --upgrade-strategy eager -U pep517

script:
- make -C docs/ linkcheck
- make -C docs/ html
- python3 -m pep517.check .

pep517_task:

build_task:
container:
image: python:3
setup_script:
- pip install bork
script:
- bork build
dist_artifacts:
path: "dist/**"


docs_task:
skip: $CIRRUS_BRANCH =~ '.*\.tmp'
container:
image: python:3.7
image: python:3.7-slim

depends_on:
- build

install_script:
- pip install --upgrade-strategy eager -U pep517
- apt update || true ; apt install -qq -y make
- pip install --upgrade-strategy eager -U -r requirements-docs.txt
- pip install dist/ppb-*.whl

script:
- python3 -m pep517.check .

- make -C docs/ linkcheck
- make -C docs/ html

task:
name: "Linux $IMAGE"
Expand All @@ -31,22 +45,25 @@ task:
allow_failures: $IMAGE =~ '.*-rc-.*'
env:
matrix:
- IMAGE: python:3.6
- IMAGE: python:3.7
# - IMAGE: python:3.8
- IMAGE: python:3.6-slim
- IMAGE: python:3.7-slim
# - IMAGE: python:3.8-slim
- IMAGE: pypy:3.6

container:
image: $IMAGE

depends_on:
- build

install_script:
- >-
if command -v pypy3 >/dev/null || python3 -c 'import sys; exit(sys.implementation.version.releaselevel == "final")'; then
apt update || true;
apt install -qq -y pkgconf libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev gcc
fi
- pip install --upgrade-strategy eager -U -r requirements-tests.txt
- pip install .
- pip install dist/ppb-*.whl

script:
- command -v pypy3 >/dev/null && export PY=pypy3
Expand All @@ -73,7 +90,7 @@ macOS_task:
- pyenv global ${PYTHON}
- pyenv rehash
- pip install --upgrade-strategy eager -U -r requirements-tests.txt
- pip install .
- pip install dist/ppb-*.whl

script:
- python3 --version
Expand All @@ -91,29 +108,19 @@ task:

env:
matrix:
- IMAGE: python:3.6-windowsservercore-1809
- IMAGE: python:3.7-windowsservercore-1809
- IMAGE: python:3.6-windowsservercore
- IMAGE: python:3.7-windowsservercore

install_script:
- C:\Python\python.exe -m pip install --upgrade-strategy eager -U -r requirements-tests.txt
- C:\Python\python.exe -m pip install .
- C:\Python\python.exe -m pip install dist/ppb-*.whl

script:
- C:\Python\python.exe --version
- C:\Python\python.exe -m pip list
- C:\Python\python.exe -m pytest


build_task:
container:
image: python:3
setup_script:
- pip install bork
script:
- bork build
dist_artifacts:
path: "dist/**"


upload_task:
only_if: $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_RELEASE != ''
Expand Down

0 comments on commit 7a12fad

Please sign in to comment.