2018-06-28 17:53:18 +03:00
|
|
|
dist: xenial
|
2012-06-06 08:51:56 +04:00
|
|
|
language: python
|
2020-02-05 18:59:04 +03:00
|
|
|
cache:
|
|
|
|
pip: true
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pre-commit
|
2012-06-06 08:51:56 +04:00
|
|
|
|
2014-04-02 14:53:34 +04:00
|
|
|
notifications:
|
|
|
|
irc: "chat.freenode.net#pil"
|
2014-03-26 23:04:54 +04:00
|
|
|
|
2018-10-17 22:24:05 +03:00
|
|
|
# Run fast lint first to get fast feedback.
|
2020-01-07 00:26:51 +03:00
|
|
|
# Run slower CPUs next, to give them a headstart and reduce waiting time.
|
2020-01-07 13:39:32 +03:00
|
|
|
# Then run the remainder.
|
2012-06-06 08:51:56 +04:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
matrix:
|
2017-01-20 22:34:13 +03:00
|
|
|
fast_finish: true
|
2017-01-19 18:54:54 +03:00
|
|
|
include:
|
2020-01-05 00:07:59 +03:00
|
|
|
- python: "3.6"
|
2020-01-07 00:26:51 +03:00
|
|
|
name: "Lint"
|
|
|
|
env: LINT="true"
|
2020-01-05 00:07:59 +03:00
|
|
|
|
|
|
|
- python: "3.6"
|
2020-01-07 00:26:51 +03:00
|
|
|
arch: arm64
|
2020-01-05 00:07:59 +03:00
|
|
|
- python: "3.7"
|
2020-01-07 00:26:51 +03:00
|
|
|
arch: ppc64le
|
2020-01-05 00:07:59 +03:00
|
|
|
- python: "3.5"
|
|
|
|
arch: s390x
|
|
|
|
|
2019-04-30 13:34:48 +03:00
|
|
|
- python: "pypy3"
|
2018-12-06 18:27:15 +03:00
|
|
|
name: "PyPy3 Xenial"
|
2019-10-15 20:57:29 +03:00
|
|
|
- python: "3.8"
|
|
|
|
name: "3.8 Xenial"
|
2019-10-15 12:44:21 +03:00
|
|
|
services: xvfb
|
2018-07-03 16:40:18 +03:00
|
|
|
- python: '3.7'
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "3.7 Xenial"
|
2019-10-07 04:41:33 +03:00
|
|
|
services: xvfb
|
2018-07-03 16:40:18 +03:00
|
|
|
- python: '3.6'
|
2019-04-01 16:34:18 +03:00
|
|
|
name: "3.6 Xenial PYTHONOPTIMIZE=1"
|
2018-09-21 13:31:16 +03:00
|
|
|
env: PYTHONOPTIMIZE=1
|
2019-10-07 04:41:33 +03:00
|
|
|
services: xvfb
|
2018-07-03 16:40:18 +03:00
|
|
|
- python: '3.5'
|
2019-04-01 16:34:18 +03:00
|
|
|
name: "3.5 Xenial PYTHONOPTIMIZE=2"
|
2018-09-21 13:31:16 +03:00
|
|
|
env: PYTHONOPTIMIZE=2
|
2019-10-07 04:41:33 +03:00
|
|
|
services: xvfb
|
2019-01-15 23:11:27 +03:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
install:
|
2018-10-17 22:24:05 +03:00
|
|
|
- |
|
|
|
|
if [ "$LINT" == "true" ]; then
|
2019-01-13 19:55:06 +03:00
|
|
|
pip install tox
|
2020-01-05 00:12:38 +03:00
|
|
|
else
|
2020-01-08 16:41:48 +03:00
|
|
|
.ci/install.sh;
|
2018-10-17 22:24:05 +03:00
|
|
|
fi
|
2016-05-06 18:33:07 +03:00
|
|
|
|
2012-06-06 08:51:56 +04:00
|
|
|
script:
|
2018-10-17 22:24:05 +03:00
|
|
|
- |
|
2018-11-11 22:38:06 +03:00
|
|
|
if [ "$LINT" == "true" ]; then
|
2019-01-13 19:55:06 +03:00
|
|
|
tox -e lint
|
2020-01-05 00:12:38 +03:00
|
|
|
else
|
2020-01-08 16:41:48 +03:00
|
|
|
.ci/build.sh
|
|
|
|
.ci/test.sh
|
2018-10-17 22:24:05 +03:00
|
|
|
fi
|
2014-07-01 00:57:16 +04:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
after_success:
|
2018-10-17 22:24:05 +03:00
|
|
|
- |
|
2018-11-11 22:38:06 +03:00
|
|
|
if [ "$LINT" == "" ]; then
|
2020-01-08 16:41:48 +03:00
|
|
|
.ci/after_success.sh
|
2018-10-17 22:24:05 +03:00
|
|
|
fi
|