Commit Graph

78 Commits

Author SHA1 Message Date
Takeshi KOMIYA
30ff35acc0 Revert "Stop to test with nightly python"
This reverts commit 21ea6838d9.
2020-02-14 10:49:14 +09:00
Takeshi KOMIYA
21ea6838d9 Stop to test with nightly python
It seems nightly python image on Travis CI has broken now.  This
stops to test with it temporarily to make our development keep going.
https://travis-ci.community/t/python-development-versions-no-longer-include-pip/7180
2020-02-11 19:47:59 +09:00
Takeshi KOMIYA
4ec24172eb Test with nightly python again (refs: #7001) 2020-01-23 00:39:43 +09:00
Takeshi KOMIYA
227df4ec7a Stop testing with nightly python
At present, latest typted_ast does not support python-3.9a1 or later.
As a result, nightly python in Travis CI gets errored in nearly running.
This stops to use nightly python for testing temporarily.

refs: https://github.com/python/typed_ast/issues/129
2020-01-08 13:14:20 +09:00
Takeshi KOMIYA
faedcc48cc Fix #6887: Sphinx crashes with docutils-0.16b0 2019-12-14 13:33:12 +09:00
Takeshi KOMIYA
99efebbb10 test: Do test with python3.8 2019-12-01 15:29:23 +09:00
Takeshi KOMIYA
81736cc828 Test with docutils-0.14 (previous release) 2019-08-02 01:53:41 +09:00
Takeshi KOMIYA
4bb1a56842 Do docslint on Travis 2019-05-26 10:53:53 +09:00
Michael Goerz
19a2314258 Install graphiz on Travis
This is required to generate inheritance diagrams (as there is now an
example inheritance diagram in the documentation of the extension
generating such diagrams)
2019-03-11 14:35:50 -04:00
Takeshi KOMIYA
1a96f2b2cb Do test with docutils-0.12 2019-02-09 15:48:33 +09:00
Takeshi KOMIYA
3a39dce9e5 Travis CI: Enable xvfb on testing
xvfb now becomes a service on Travis CI.
https://docs.travis-ci.com/user/build-environment-updates/2019-01-14/
2019-01-18 00:03:58 +09:00
Jon Dufresne
96f6c950dd Use 'dist: xenial' in Travis to simplify configuration
Allows using Python version 3.7 without sudo declarations.

Travis officially added support for Xenial on 2018-11-08.

https://blog.travis-ci.com/2018-11-08-xenial-release
2018-12-09 09:36:02 -08:00
Takeshi KOMIYA
9412bd76b7 Drop python 2.7 and 3.4 support 2018-08-30 01:03:57 +09:00
Takeshi KOMIYA
701a8ef760 test: Run tests for python-nightly-builds on xenial 2018-08-05 07:58:51 +09:00
Timotheus Kampik
33d09e1c33 Merge pull request #5207 from TimKam/5186-js-test-infrastructure
5186 set up JavaScript test infrastructure
2018-07-29 08:52:37 +02:00
Takeshi KOMIYA
6754b531b9 Do test with py37 2018-07-28 19:12:35 +09:00
Timotheus Kampik
fcd0b78afa #5186 add JS test installer & runner 2018-07-24 21:17:05 +02:00
Timotheus Kampik
2fa382673f #5186 configure travis-ci 2018-07-22 19:19:54 +02:00
Stephen Finucane
3eb26a3335 travis: Run flake8 against Python 3.6
As with tox and make before it, we run everything that we can against
Python 3 (Python 3.6 in this case).

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-06-21 15:11:42 +01:00
Takeshi KOMIYA
1a35640974 Stop testings for graphviz on Travis CI
To make our test faster, this stops testings for graphviz on Travis CI.
Instead of that, Circle CI confirms they are passed.
2018-02-05 02:00:56 +09:00
Takeshi KOMIYA
3430610a0f test: pass PYTEST_ADDOPTS to pytest 2018-02-04 22:48:45 +09:00
Takeshi KOMIYA
fdf0a33eab test: Remove PYTHONWARNINGS from travis.yml
PYTHONWARNINGS is now controled at tox.ini.  So this envvar is no
longer referred.
2018-01-06 16:28:52 +09:00
Takeshi KOMIYA
0cc6cdd7cc travis: Build own docs as a test 2017-12-28 10:48:29 +09:00
Stephen Finucane
a3f9935d95 travis: Enable codecov coverage
This necessitates adding some basic coverage-py configuration [1] and
making sure the pytest-cov plugin uses said configuration [2]. Badges
are included.

Note that we do not run the 'coverage' tox target, which is reserved for
users.

[1] https://github.com/codecov/example-python
[2] https://bitbucket.org/ned/coveragepy/issues/512/

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-24 21:24:41 +00:00
Stephen Finucane
76bd631872 travis: Start using tox for testing
This allows us to validate and reuse the testing tools we use locally
for "gate" tests and moves us closer to the eventual goal of deprecating
the Makefile targets. This involves adding two new targets to the list
of default targets run by tox - docs and mypy.

Note that we don't use tox-travis because, wonderful though it may be,
configuring it to exclude as many of the tests as we want to exclude is
a little convoluted (we have a big test matrix).

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-19 15:21:42 +00:00
Stephen Finucane
e243e82723 tests: Ignore tests using 'collect_ignore'
Per the pytest docs [1], this is the preferred way to ignore tests. This
necessitates removing the 'test-async' target as it no longer makes any
sense.

[1] https://docs.pytest.org/en/latest/example/pythoncollection.html

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 20:10:18 +00:00
Stephen Finucane
a102e8e29b setup.py: Include 'flake8' in 'test' requirements
We are using this in our testing and actually need it for the flake8
plugin, so include this in the list of 'test' requirements.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 19:44:05 +00:00
Jon Dufresne
90279d4cf9 Enable pip cache in Travis CI
Can speed up builds and reduce load on PyPI servers.

For more information, see:

https://docs.travis-ci.com/user/caching/#pip-cache
2017-10-17 20:26:17 -07:00
Stephen Finucane
eb8efce7d8 requirements: Reduce duplication
Simply installing packages will ensure that most of the dependencies in
'setup.py' are installed, meaning 'test-reqs.txt' need only contain
those necessary for testing.

The only notable change is that the 'simplejson' module is dropped from
the requirements list. This included as a dependency for the PyPy
target, but it appears that this is not necessary today (though it may
have been when the target was added in 2011).

This retains 'setup.py test' which, as noted in the tox docs [1], is
sometimes expected for downstream distribution testing. We may wish to
find a way to synchronize requirements between 'test-reqs.txt' and this
section in the future, but that's work for another day.

[1] https://tox.readthedocs.io/en/latest/example/basic.html#integration-with-setup-py-test-command

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-10-10 14:06:10 +01:00
Stephen Finucane
160e27e20f utils: Remove 'check_sources'
There are still a couple of checks here but all of them can be removed
now:

- Check if using valid Python syntax
- Check if line length too long
- Check if using 'x == None/True/False'
- Check if using old HTML 3 tags

The first three are already handled by default by the 'flake8' tool. The
last one isn't replaced by anything, but it really isn't worth worrying
about now because the tags it checks for have been dead for a really
long time and would not be used by anyone writing HTML in the last 10
years. Combined, it means we can remove the entire file.

The 'style-check' target is updated to simply alias 'flake8'. It can be
removed in a future release. This allows us to stop using this target in
the Travis jobs, seeing as we already run flake8.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-10-05 17:17:27 +01:00
Takuya Noguchi
3e94878871 Add support for docutils 0.14 2017-09-10 09:23:09 +09:00
Takeshi KOMIYA
cf70e4e910 Skip latex compilations on Travis CI 2017-05-11 16:28:25 +09:00
Takeshi KOMIYA
19323d232a Merge pull request #3655 from tk0miya/compile_latex_only_on_py36
tests: compile by LaTeX only with py36
2017-04-23 16:28:03 +09:00
Takeshi KOMIYA
3cf1883356 tests: compile by LaTeX only with py36 2017-04-22 18:14:06 +09:00
Takeshi KOMIYA
c525723807 Add sphinx.ext.imgconverter 2017-04-22 13:29:16 +09:00
jfbu
79a49805eb Add xcolor to Travis requirements for testing (refs #3070) 2017-03-04 18:56:55 +01:00
Takeshi KOMIYA
554199d30e Upgrade to mypy-0.5 2017-03-03 23:17:34 +09:00
Takeshi KOMIYA
6e7d878003 Pin mypy==0.471 (refs: #3499) 2017-03-03 13:23:34 +09:00
Takeshi KOMIYA
b10d7281d2 Skip test with the combination of py3 and docutils-0.12 2017-03-01 00:26:49 +09:00
jfbu
c2d7b1dbdd add luatex travis requirement 2017-02-26 10:25:25 +01:00
Takeshi KOMIYA
b2d8803545 Upgrade to newest mypy package 2017-02-21 14:05:18 +09:00
Takeshi KOMIYA
15266bca5c travis: Reorder tests 2017-02-21 11:25:13 +09:00
Takeshi KOMIYA
d83dbcdae5 Do type-check on Travis CI 2017-02-21 11:25:12 +09:00
Takeshi KOMIYA
fb3e77bb78 travis: Specify the version of pypy to avoid travis's issue 2017-02-13 21:40:12 +09:00
Takeshi KOMIYA
98e0f6b56f Use Ubuntu/trusty for testing 2017-02-02 03:07:27 +09:00
Takeshi KOMIYA
57dd53d903 Test pypy first to optimize Travis 2017-01-08 11:58:14 +09:00
shimizukawa
5b7d237db3 pytest migration 2017-01-04 00:59:30 +09:00
Takeshi KOMIYA
4cc3c154fe Refactor travis.yml 2016-12-25 12:19:16 +09:00
Takeshi KOMIYA
6a5ffb403e Reduce CI matrix 2016-12-25 12:19:15 +09:00
Takeshi KOMIYA
36eab77c3d Add py36 support 2016-12-25 12:19:15 +09:00