Skip to content

Commit 7502930

Browse files
authored
Merge pull request #11 from aragilar/add-bors
Use modern setup
2 parents beae526 + 74c596e commit 7502930

File tree

6 files changed

+134
-139
lines changed

6 files changed

+134
-139
lines changed

.travis.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# from matplotlib's azure setup
2+
3+
4+
schedules:
5+
- cron: "0 0 * * 4"
6+
displayName: Weekly build
7+
branches:
8+
include:
9+
- releases/*
10+
always: true
11+
12+
13+
trigger:
14+
tags:
15+
include:
16+
- '*'
17+
branches:
18+
include:
19+
- '*'
20+
21+
22+
variables:
23+
PIP_CACHE_DIR: $(Pipeline.Workspace)/cache/pip
24+
25+
26+
jobs:
27+
- job: 'static_checks'
28+
pool:
29+
vmImage: ubuntu-16.04
30+
variables:
31+
TOXENV: flake8,pylint,docs,check-manifest,checkreadme
32+
steps:
33+
- task: UsePythonVersion@0
34+
inputs:
35+
versionSpec: '3.8'
36+
architecture: 'x64'
37+
- script: |
38+
pip install tox
39+
displayName: Install tox
40+
- script: |
41+
tox
42+
displayName: tox
43+
44+
- job: 'ubuntu1604'
45+
pool:
46+
vmImage: ubuntu-16.04
47+
strategy:
48+
matrix:
49+
py36:
50+
python.version: '3.6'
51+
TOXENV: py36
52+
py37:
53+
python.version: '3.7'
54+
TOXENV: py37
55+
py38:
56+
python.version: '3.8'
57+
TOXENV: py38
58+
py39:
59+
python.version: '3.9'
60+
TOXENV: py39
61+
maxParallel: 4
62+
63+
steps:
64+
- template: ci/azure-pipelines-steps.yml
65+
parameters:
66+
platform: linux
67+
68+
- job: 'macOS1015'
69+
pool:
70+
vmImage: macOS-10.15
71+
strategy:
72+
matrix:
73+
py37:
74+
python.version: '3.7'
75+
TOXENV: py37
76+
py38:
77+
python.version: '3.8'
78+
TOXENV: py38
79+
py39:
80+
python.version: '3.9'
81+
TOXENV: py39
82+
maxParallel: 4
83+
84+
steps:
85+
- template: ci/azure-pipelines-steps.yml
86+
parameters:
87+
platform: macos
88+

bors.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
status = [
2-
"continuous-integration/travis-ci/push",
3-
"continuous-integration/appveyor/branch"
2+
"aragilar.spaceplot",
3+
"codecov/patch",
4+
"codecov/project",
45
]
6+

ci/azure-pipelines-steps.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
steps:
2+
- task: UsePythonVersion@0
3+
inputs:
4+
versionSpec: '$(python.version)'
5+
architecture: 'x64'
6+
displayName: 'Use Python $(python.version)'
7+
condition: and(succeeded(), ne(variables['python.version'], 'Pre'))
8+
9+
- script: |
10+
python -m pip install --upgrade pip
11+
pip install tox codecov twine wheel
12+
displayName: 'Install pip dependencies'
13+
14+
- task: TwineAuthenticate@0
15+
inputs:
16+
externalFeeds: 'pypi'
17+
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
18+
19+
- script: env
20+
displayName: 'print env'
21+
22+
- script: |
23+
tox
24+
displayName: 'tox'
25+
26+
#- script: |
27+
# codecov
28+
# displayName: 'codecov'
29+
# hopefully the bash uploader will work
30+
- script: |
31+
bash <(curl -s https://codecov.io/bash)
32+
displayName: 'Upload to codecov.io'
33+
34+
- script: |
35+
python setup.py sdist bdist_wheel
36+
twine upload --skip-existing -r pypi --config-file $(PYPIRC_PATH) dist/*
37+
displayName: 'Upload to PyPI'
38+
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
# and then run "tox" from this directory.
55

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

99
[testenv]
1010
commands = py.test --cov={envsitepackagesdir}/spaceplot -s {posargs}
1111
deps =
1212
-rtest-requirements.txt
1313
basepython =
14-
py34: {env:TOXPYTHON:python3.4}
15-
py35: {env:TOXPYTHON:python3.5}
1614
py36: {env:TOXPYTHON:python3.6}
15+
py37: {env:TOXPYTHON:python3.7}
16+
py38: {env:TOXPYTHON:python3.8}
17+
py39: {env:TOXPYTHON:python3.9}
1718
flake8: {env:TOXPYTHON:python3}
1819
pylint: {env:TOXPYTHON:python3}
1920
docs: {env:TOXPYTHON:python3}

0 commit comments

Comments
 (0)