Added Azure Pipelines configuration and removed Travis CI and AppVeyor configuration

This commit is contained in:
Thomas Robitaille 2019-09-05 17:10:48 +01:00
Родитель 97518a596c
Коммит 15098ddf09
4 изменённых файлов: 69 добавлений и 82 удалений

Просмотреть файл

@ -1,41 +0,0 @@
language: c
os:
- linux
- osx
sudo: false
notifications:
email: false
env:
global:
- SETUP_XVFB=True
- CONDA_CHANNELS="wwt/label/dev conda-forge"
- CONDA_DEPENDENCIES="astropy qtpy traitlets ipywidgets>=7.0 ipyevents widgetsnbextension pyqt pytest pytest-cov>=2.6.1 pytest-remotedata>=0.3.1 requests nomkl matplotlib beautifulsoup4 lxml jupyterlab flask flask-cors pyopengl"
- PIP_DEPENDENCIES="sphinx-automodapi numpydoc sphinx_rtd_theme codecov reproject"
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
script:
- python setup.py sdist
- cd dist && pip install *.tar.gz --verbose && cd ..
- jupyter nbextension list
- jupyter labextension list
- jupyter serverextension list
- python .check_enabled.py
# For now the image tests don't work well on MacOS X, which requires WebEngine. The
# tests only pass if the Qt window is always in the foreground.
- if [[ $TRAVIS_OS_NAME == linux ]]; then pytest pywwt --cov pywwt; fi
- make -C docs html linkcheck
after_success:
- codecov

Просмотреть файл

@ -1,41 +0,0 @@
# AppVeyor.com is a Continuous Integration service to build and run tests under
# Windows
environment:
global:
CI: "true"
PYTHON: "C:\\conda"
MINICONDA_VERSION: "latest"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
# of 32 bit and 64 bit builds are needed, move this
# to the matrix section.
CONDA_CHANNELS: "wwt/label/dev conda-forge"
# Without the pyqt version constraint, a lib compat issue leads to import failures on qtpy for Python 3.6:
CONDA_DEPENDENCIES: "astropy qtpy traitlets ipywidgets>=7.0 ipyevents widgetsnbextension pyqt==5.6.0 pytest pytest-cov>=2.6.1 pytest-remotedata>=0.3.1 requests matplotlib flask flask-cors pyopengl"
PIP_DEPENDENCIES: "codecov reproject"
matrix:
- PYTHON_VERSION: "2.7"
- PYTHON_VERSION: "3.6"
- PYTHON_VERSION: "3.7"
# matrix:
# fast_finish: true
platform:
-x64
install:
- "git clone git://github.com/astropy/ci-helpers.git"
- "powershell ci-helpers/appveyor/install-miniconda.ps1"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "activate test"
build: false
test_script:
- "%CMD_IN_ENV% pytest pywwt --cov pywwt"
- "%CMD_IN_ENV% codecov"

16
azure-pipelines.yml Normal file
Просмотреть файл

@ -0,0 +1,16 @@
jobs:
- template: azure-template.yml
parameters:
name: Linux
os: linux
- template: azure-template.yml
parameters:
name: MacOSX
os: macosx
- template: azure-template.yml
parameters:
name: Windows
os: windows

53
azure-template.yml Normal file
Просмотреть файл

@ -0,0 +1,53 @@
jobs:
- job: ${{ format(parameters.name) }}
pool:
${{ if eq(parameters.os, 'macosx') }}:
vmImage: macOS 10.13
${{ if eq(parameters.os, 'linux') }}:
vmImage: Ubuntu 16.04
${{ if eq(parameters.os, 'windows') }}:
vmImage: vs2017-win2016
strategy:
matrix:
Python27:
python.version: '2.7'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
steps:
- ${{ if eq(parameters.os, 'linux') }}:
- bash: |
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid \
--make-pidfile --background --exec /usr/bin/Xvfb \
-- :99 -screen 0 1920x1200x24 -ac \
+extension GLX +render -noreset
displayName: Starting Xvfb
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- bash: |
python -m pip install numpy pyopengl "PyQt5==5.9.*" jupyterlab
python -m pip install .[test]
displayName: Installing PyWWT and dependencies
- bash: python .check_enabled.py
displayName: Checking that plugins are enabled
- ${{ if eq(parameters.os, 'macosx') }}:
- bash: python -m pytest pywwt --cov pywwt
displayName: Running tests
env:
DISPLAY: :99.0
CI: true
- bash: python -m pip install .[docs]
displayName: Installing documentation dependencies
- bash: make -C docs html linkcheck
displayName: Building docs