Add a basic azure pipelines config

This commit is contained in:
Christoph Reiter 2018-10-01 23:17:21 +02:00
parent 278671c398
commit be1f0be034
2 changed files with 40 additions and 1 deletions

View File

@ -3,7 +3,8 @@ set -e
export MSYS2_FC_CACHE_SKIP=1
pacman --noconfirm -Suy --force
pacman --noconfirm -S --needed mingw-w64-$MSYS2_ARCH-cairo \
mingw-w64-$MSYS2_ARCH-$PYTHON mingw-w64-$MSYS2_ARCH-$PYTHON-pip
mingw-w64-$MSYS2_ARCH-$PYTHON mingw-w64-$MSYS2_ARCH-$PYTHON-pip \
mingw-w64-$MSYS2_ARCH-toolchain
$PYTHON -m pip install pytest coverage codecov hypothesis
$PYTHON -m pip install mypy || true

38
.azure-pipelines/ci.yml Normal file
View File

@ -0,0 +1,38 @@
jobs:
- job: MSYS2
timeoutInMinutes: 60
pool:
vmImage: vs2017-win2016
strategy:
maxParallel: 4
matrix:
py2-i686:
MSYSTEM: MINGW32
MINGW_ARCH: i686
PYTHON: python2
py2-x86_64:
MSYSTEM: MINGW64
MINGW_ARCH: x86_64
PYTHON: python2
py3-i686:
MSYSTEM: MINGW32
MINGW_ARCH: i686
PYTHON: python3
py3-x86_64:
MSYSTEM: MINGW64
MINGW_ARCH: x86_64
PYTHON: python3
steps:
- script: |
git clone https://github.com/lazka/msys2-ci-base.git %CD:~0,2%\msys64
displayName: Install MSYS2
- script: |
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Syyuu
displayName: Update MSYS2
- script: |
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
%CD:~0,2%\msys64\usr\bin\bash -lc "bash -x .appveyor/msys2.sh"
displayName: Test
env:
CHERE_INVOKING: yes