Commit Graph

65 Commits

Author SHA1 Message Date
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
Takeshi KOMIYA
3adc236114 Fix #3212: HTML Builders crashes with docutils-0.13 2016-12-10 20:31:09 +09:00
shimizukawa
1c8935adae Inprovement of warnings mechanism. Now support disabling emit warnings and add documentation. 2016-12-04 18:05:16 +09:00
Takeshi KOMIYA
d322e443a8 Travis CI: Install lmodern to build xetex documents 2016-10-25 11:26:44 +09:00
Takeshi KOMIYA
f9186c9b89 Test with nightly python builds 2016-10-11 20:27:42 +09:00
Takeshi KOMIYA
71a36d5b33 Test with XeTeX on TravisCI (#3026) 2016-10-10 23:59:08 +09:00
Takeshi KOMIYA
c147f6496e Fix #2919: Drop py26 support 2016-09-15 22:47:47 +09:00
Takeshi KOMIYA
1da1a71511 Drop python 3.3 support 2016-08-30 00:43:15 +09:00
Takeshi KOMIYA
99c9f60373 Merge branch 'stable' 2016-07-26 14:26:11 +09:00
Takeshi KOMIYA
ac52486274 travis: Do not run flake8 on py26 (not supported) again 2016-07-26 14:11:05 +09:00
Takeshi KOMIYA
bac6fc6d04 travis: Do not run flake8 on py26 (not supported) 2016-07-26 14:00:38 +09:00
Takeshi KOMIYA
de47f2885c Use latest setuptools for testing 2016-07-15 11:08:41 +09:00
Takeshi KOMIYA
a692009808 Merge branch 'stable' 2016-07-15 00:51:29 +09:00
Takeshi KOMIYA
1dfa1a8d1e nose-timer: show top 25 slower testcases 2016-07-14 21:10:32 +09:00