Skip to content

Commit 32e45fc

Browse files
committed
CI: clean up travis config
- Remove travis cruft keys no longer applicable - Move to latest pypy3 - Remove unused anchor names, consolidate nodes only included once - Consistent anchor naming (all anchors are shared, so no leading underscores) - Fix deployment password - Because only spelling needs libenchant-dev, there is no need to have a dedicated _doc_base helper. - Use before_script to install job-specific requirements
1 parent ffba112 commit 32e45fc

File tree

1 file changed

+38
-56
lines changed

1 file changed

+38
-56
lines changed

.travis.yml

Lines changed: 38 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
conditions: v1
2-
version: "= 0"
31
if: > # Forbid running non-PR pushes from pyup bot
42
not (type != pull_request AND branch =~ ^pyup\-scheduled\-update\-)
53
@@ -12,10 +10,10 @@ python:
1210
- 3.6
1311
- &mainstream_python 3.7
1412
- 3.8-dev
15-
- &pypy3 pypy3.5-6.0.0
13+
- pypy3
1614

1715
install:
18-
- &upgrade_python_toolset pip install --upgrade pip wheel setuptools
16+
- pip install --upgrade pip wheel setuptools
1917
- pip install -r requirements/ci.txt
2018

2119
script:
@@ -25,31 +23,30 @@ after_success:
2523
- codecov
2624

2725
_helpers:
28-
- &_mainstream_python_base
26+
# anchor nodes to be included elsewhere.
27+
- &mainstream_python_base
2928
python: *mainstream_python
30-
- &_reset_steps
29+
30+
- &lint_base
31+
<<: *mainstream_python_base
3132
env: []
3233
before_install: skip
3334
install: skip
35+
before_script: skip
3436
script: skip
35-
after_success: []
36-
- &_lint_base
3737
stage: &doc_stage_name docs, linting and pre-test checks
38-
<<: *_mainstream_python_base
39-
<<: *_reset_steps
40-
install:
41-
- *upgrade_python_toolset
42-
- pip install -U -r requirements/ci.txt
43-
- &_doc_base
44-
<<: *_lint_base
45-
install:
46-
- *upgrade_python_toolset
47-
- pip install -U -r requirements/doc.txt -r requirements/doc-spelling.txt
48-
after_failure: cat docs/_build/spelling/output.txt
49-
addons:
50-
apt:
51-
packages:
52-
- libenchant-dev
38+
39+
deploy:
40+
provider: pypi
41+
username: __token__
42+
password:
43+
# Encrypted with `travis encrypt`:
44+
secure: "QnfCQAFZoNXlrNe2UVeI24DTbWu5bzlNdqypXFvey/ga9H2ba9KnWIGFws+1uTux3E9fbfxcNTzO3iLXHc7VEjsif7xvuyIu/NBfV+4ONHGeR7UuwB4iu9PU6cMeD422vYceFZBB7KMfwJZ+mLJWQTKIf74iWK8mIx4IUK8S9As5Ypx6yQdatJr4jgQ/j/1MI4xnmKKIkIJZ18k5epF7N0ifEdZC7TfCuGXF5AMVwxHjUWPzxfkOtC+ENJ8NivZQOCNj/DIeH2nJSVexQrYo+xIO7D40k/hy2lzWqqSTgqE978055UzBQNZmdarzxb8frln5OvvVMIVr8xKZVszglA17fbpuQjMz3ThiDuhozo/dRTNeN+n9r33tm3fRjrzqEcr0mTHzHs7wypmZoXLJplnIko6T3SvnF+O8nhdlIJjArPVJE00kkTj6bz3cKlWYi5OyaFWPo5zLuAvjtPpbUlg/pyus9xsic630JdYQv2IZOrHFkw9OGD/FKy1K1hZ1YIA+XC8cD0s8K+C+NPnCeJ7/yAPwzrMv4XoPhqO5V4D8eJP7FIecbvHxQj0V+tF15OtjqxyuY2+G+NQ6ySn/OFOLrkvCOzselCc4qiEGSzKLlS0BdqLSryekFVUIVr8cng43PHq9bMbXWw9OV0WDs+no0bwGNRJd+FsKzk/4AiE=" distributions: "sdist bdist_wheel"
45+
skip_existing: true
46+
on:
47+
<<: *mainstream_python_base
48+
tags: true
49+
all_branches: true
5350

5451
os: linux
5552

@@ -58,65 +55,50 @@ matrix:
5855
allow_failures:
5956
- python: 3.8-dev
6057

61-
- <<: *_doc_base
58+
- <<: *lint_base
6259
name: Checking docs spelling
60+
before_script:
61+
- pip install --upgrade -r requirements/doc-spelling.txt
6362
script:
6463
- make doc-spelling
64+
after_failure: cat docs/_build/spelling/output.txt
65+
addons:
66+
apt:
67+
packages:
68+
- libenchant-dev
6569

66-
- <<: *_doc_base
70+
- <<: *lint_base
6771
name: Checking Towncrier fragments
68-
install:
69-
- *upgrade_python_toolset
70-
- pip install -r requirements/ci.txt
71-
- pip install -r requirements/towncrier.txt
72+
before_script:
73+
- pip install --upgrade -r requirements/towncrier.txt
7274
script:
7375
- towncrier --yes
7476

75-
- <<: *_lint_base
77+
- <<: *lint_base
7678
name: Linting source code with flake8
77-
install:
78-
- *upgrade_python_toolset
79-
- pip install -r requirements/flake.txt
79+
before_script:
80+
- pip install --upgrade -r requirements/flake.txt
8081
script:
8182
- flake8 aiosignal tests
8283

83-
- <<: *_lint_base
84+
- <<: *lint_base
8485
name: Linting source code with mypy
85-
install:
86-
- *upgrade_python_toolset
87-
- pip install -r requirements/ci.txt
8886
script:
8987
- mypy aiosignal
9088

91-
- <<: *_lint_base
89+
- <<: *lint_base
9290
name: Verifying distribution package metadata
93-
install:
94-
- *upgrade_python_toolset
95-
- pip install -r requirements/ci.txt -r requirements/doc.txt
9691
script:
9792
- python setup.py --verbose sdist bdist_wheel
9893
- twine check dist/*
9994

100-
- <<: *_lint_base
95+
- <<: *lint_base
10196
name: Making sure that CONTRIBUTORS.txt remains sorted
10297
language: shell
103-
install:
104-
- skip
98+
install: skip
10599
script:
106100
- LC_ALL=C sort -c CONTRIBUTORS.txt
107101

108-
109-
deploy:
110-
provider: pypi
111-
username: __token__
112-
password:
113-
secure: qmyq5Qr0tF0ak/2IS5dBTTmX7WIysbOg2WuBfIrx44IPYbqAqIV+vxN7WtcZurHPJqplNuaU2eWiHKg68x1hiLPxGQmnxwn938tNJ147XCRDL9IPLcLQEfssUIWBbZE0bXaHJcdybYg6YaryR1d7lSewInQ6i51BxhQDFfB9hr4NUEM9yoN5XzvFLq5EsHuXL3IQPe3Rn07QebRPJhekk++FwgWB487TBF1sx8rbFpvBoNiE7X1tFnyTjZTl4eyPHo/3cTpzhO8cdELgnO0Ux9wHjhvhywK2oh0Ct49D4NnZ1eM2mrHiBxR/9pYC7N4pStTReqELjk2Cr9JS8dzRO0NWzZL+ElMVpLbVhJauYlG570sIPaauBhy40dy+hrjqCtMjrJsbt9kpugmEyYpKt9nKWGxcGvuwepOYyQmE/5iT/Ox8g+m07G4SYksP0lEUPmsXtrtRMr6hRmBuBCYGN4Sv1c+K+rdRL5OdLA8QuSRceNXCf9StF5BJPYTg5X6cLj99Lb9KLKnMJg6VkBx8ovBPpghALeNul/D41kjV1azx4RP7kKD4e1LzfAO8uOITudiCfFyBawXDbiNeaeACy4YniCTwZvC++sgTMPEP3cbqviunLe5EiNabjb2GxxtGXmIahu3NNFw+FreYacWdj9N/Zc1T4SH6HIaQybF3SuU=
114-
distributions: "sdist bdist_wheel"
115-
skip_existing: true
116-
on:
117-
<<: *_mainstream_python_base
118-
tags: true
119-
120102
stages:
121103
- *doc_stage_name
122104
- test

0 commit comments

Comments
 (0)