Skip to content

Commit

Permalink
Merge pull request #11 from aragilar/add-bors
Browse files Browse the repository at this point in the history
Use modern setup
  • Loading branch information
aragilar committed May 29, 2021
2 parents beae526 + 74c596e commit 7502930
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 139 deletions.
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

77 changes: 0 additions & 77 deletions appveyor.yml

This file was deleted.

88 changes: 88 additions & 0 deletions azure-pipelines.yml
@@ -0,0 +1,88 @@
# from matplotlib's azure setup


schedules:
- cron: "0 0 * * 4"
displayName: Weekly build
branches:
include:
- releases/*
always: true


trigger:
tags:
include:
- '*'
branches:
include:
- '*'


variables:
PIP_CACHE_DIR: $(Pipeline.Workspace)/cache/pip


jobs:
- job: 'static_checks'
pool:
vmImage: ubuntu-16.04
variables:
TOXENV: flake8,pylint,docs,check-manifest,checkreadme
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
architecture: 'x64'
- script: |
pip install tox
displayName: Install tox
- script: |
tox
displayName: tox
- job: 'ubuntu1604'
pool:
vmImage: ubuntu-16.04
strategy:
matrix:
py36:
python.version: '3.6'
TOXENV: py36
py37:
python.version: '3.7'
TOXENV: py37
py38:
python.version: '3.8'
TOXENV: py38
py39:
python.version: '3.9'
TOXENV: py39
maxParallel: 4

steps:
- template: ci/azure-pipelines-steps.yml
parameters:
platform: linux

- job: 'macOS1015'
pool:
vmImage: macOS-10.15
strategy:
matrix:
py37:
python.version: '3.7'
TOXENV: py37
py38:
python.version: '3.8'
TOXENV: py38
py39:
python.version: '3.9'
TOXENV: py39
maxParallel: 4

steps:
- template: ci/azure-pipelines-steps.yml
parameters:
platform: macos

6 changes: 4 additions & 2 deletions bors.toml
@@ -1,4 +1,6 @@
status = [
"continuous-integration/travis-ci/push",
"continuous-integration/appveyor/branch"
"aragilar.spaceplot",
"codecov/patch",
"codecov/project",
]

38 changes: 38 additions & 0 deletions ci/azure-pipelines-steps.yml
@@ -0,0 +1,38 @@
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
displayName: 'Use Python $(python.version)'
condition: and(succeeded(), ne(variables['python.version'], 'Pre'))

- script: |
python -m pip install --upgrade pip
pip install tox codecov twine wheel
displayName: 'Install pip dependencies'

- task: TwineAuthenticate@0
inputs:
externalFeeds: 'pypi'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')

- script: env
displayName: 'print env'

- script: |
tox
displayName: 'tox'

#- script: |
# codecov
# displayName: 'codecov'
# hopefully the bash uploader will work
- script: |
bash <(curl -s https://codecov.io/bash)
displayName: 'Upload to codecov.io'

- script: |
python setup.py sdist bdist_wheel
twine upload --skip-existing -r pypi --config-file $(PYPIRC_PATH) dist/*
displayName: 'Upload to PyPI'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
7 changes: 4 additions & 3 deletions tox.ini
Expand Up @@ -4,16 +4,17 @@
# and then run "tox" from this directory.

[tox]
envlist = py34,py35,py36,flake8,pylint,docs,check-manifest,checkreadme
envlist = py36,py37,py38,py39,flake8,pylint,docs,check-manifest,checkreadme

[testenv]
commands = py.test --cov={envsitepackagesdir}/spaceplot -s {posargs}
deps =
-rtest-requirements.txt
basepython =
py34: {env:TOXPYTHON:python3.4}
py35: {env:TOXPYTHON:python3.5}
py36: {env:TOXPYTHON:python3.6}
py37: {env:TOXPYTHON:python3.7}
py38: {env:TOXPYTHON:python3.8}
py39: {env:TOXPYTHON:python3.9}
flake8: {env:TOXPYTHON:python3}
pylint: {env:TOXPYTHON:python3}
docs: {env:TOXPYTHON:python3}
Expand Down

0 comments on commit 7502930

Please sign in to comment.