Commit Graph
63 Commits
Author SHA1 Message Date
Nate Coraor 079b9f076d Pass $CI in to tox envs 2019-07-09 11:32:04 +02:00
Nicola Soranzo 2fdc1c53ca Run more CircleCI jobs using the `python:3.5` image
Also run `test_galaxy_packages` job through tox.
2019-06-13 12:26:32 +01:00
Nicola Soranzo 06ec2d6e4c Merge branch 'release_19.01' into dev 2019-04-12 15:02:11 +01:00
Nicola Soranzo 177a2a1cf3 Merge branch 'release_18.05' into release_18.09 2019-04-12 13:02:12 +01:00
Nicola Soranzo d4030757f9 Backport other CI config changes
`py35-unit` and `py35-first_startup` jobs were green on CircleCI, but doing
nothing.
Remove duplicated jobs from TravisCI.
2019-04-11 20:04:26 +01:00
Nicola Soranzo 6589bf3314 Drop support for Python 3.4. Officially support Python >=3.5
xref. https://github.com/galaxyproject/galaxy/issues/7260
2019-01-31 23:31:44 +00:00
Dannon Baker 61774f5126 re-enable full matrix, overhaul qunit/lint implementations. 2019-01-15 20:34:48 -05:00
Dannon Baker 588e2d7460 Test building without tox 2019-01-15 20:24:22 -05:00
Dannon Baker f95cff627b Attempt to add eslint to travis. 2019-01-15 16:43:29 -05:00
mvdbeek 1c64cdd674 Use pytest to run unit and doctests 2018-08-25 14:17:58 +02:00
Nicola Soranzo c6c34beb81 Add py34-unit to default tox tests 2018-07-16 20:15:12 +01:00
Nicola Soranzo 594daa85bf Add py34-first_startup to Travis and default tox tests. 2018-06-13 03:12:45 +01:00
Martin Cech 2558d27801 Merge pull request #5772 from Delphine-L/addGbkgz
Add genbank.gz datatype
2018-03-27 16:01:18 -04:00
Martin Cech a97b3a469c fex sniffing of compressed genbank files
also add doctest for both compressed and uncompressed versions
2018-03-27 14:43:01 -04:00
Nicola Soranzo 43543c36d9 Rev and re-lock Galaxy dependencies
Drop pinned-hashed-requirements.txt files, they are not generated by
pipenv any more since v11.1.2 .
2018-03-26 14:09:17 +01:00
Nicola Soranzo 2be7eb8cfa Add py34-first_startup and py34-unit tox environments
Also:
- rename `first_startup` to `py27-first_startup`
- rename other tox environments to use hyphens only to delimit factors
- use the more specific
  ```
  setenv =
    GALAXY_VIRTUAL_ENV={envdir}
  ```
  instead of passing `--no-create-venv` to run unit tests inside the tox
  virtualenv (xref. commit 744835bbfe).
  Previously, `.venv` would be used if present.
2018-02-03 04:05:13 +00:00
Nicola Soranzo 3b9d288161 Add check_py3_compatibility Travis job 2017-12-15 17:33:40 +00:00
John Chilton 00147bafc7 Run qunit tests under Karma. 2017-11-16 23:43:57 -05:00
John Chilton b4e041d14d Removed unneeded skip_install tags in tox.ini.
Alternative to #4995 thanks to @nsoranzo's detective work.
2017-11-14 22:45:02 -05:00
Nicola Soranzo 2cd95c48f6 Fix import order everywhere
- Add flake8-import-order to flake8 Pipfile and remove py27-lint-imports
  and py27-lint-imports-include-list tox envs
- Fix most E201 and E202 errors reported by flake8-import-order v0.15,
  but pin flake8-import-order to v0.14.3 until
  https://github.com/PyCQA/flake8-import-order/issues/123
  is fixed

This let us drop 2 jobs on Travis per each job.
2017-11-14 19:42:39 +00:00
Nicola Soranzo aa640f493d Fix tox envlist to contain all envs that should pass
Now simply running:
```
$ tox
```
is the equivalent of running all the Travis jobs that are not in the
`allow_failures` list.

Also:
- remove py33-lint env
- sort envs alphabetically
2017-11-13 14:45:40 +00:00
John Chilton 1b0ccf641c Use pipenv to generate development dependencies.
- Rework pattern for linting dependencies to work for dev-requirements.txt.
- Get rid of dev-requirements.txt and replace it with a symbolic link to the latest pinned versions of dependencies.

Rebased against dev to bring in @nsoranzo's bashism bashings in #4876 and fixed up to strip trailing whitespace from generated requirement files.
2017-11-01 21:21:30 -04:00
John Chilton ccb5f61845 Absolute pins on linting dependencies.
- Use completely pinned and hashed dependencies for more consistent, reproducible linting.
- Leverage the awesomeness of pipenv to automate updating these.
- These will always be locked now so builds don't break randomly on other people updating their software. When we finally have the bot up and running that forward merges fixes for Galaxy we can add another if statement that runs this check against dev once a day and opens a PR if needed.
2017-10-26 15:53:25 -04:00
Martin Cech 862212ad40 Merge pull request #4788 from jmchilton/check_dependencies
Include check for updates to dependencies in tox, Makefile, Travis.
2017-10-26 14:48:55 -04:00
Nicola Soranzo e780b0fe91 Require flake8-import-order >=0.14 2017-10-26 12:13:39 +01:00
Nicola Soranzo 255d3daf50 Extend Python3 flake8 linting to whole codebase
Keep .ci/py3_sources.txt as list of manually ported files.
2017-10-16 19:53:56 +01:00
John Chilton fa178108d6 Include check for updates to dependencies in tox and Makefile. 2017-10-10 15:13:10 -04:00
Martin Cech cbb119ebcd pin flake and pydocstyle in tox 2017-10-10 14:28:09 -04:00
Nicola Soranzo 9f4c72a345 Un-pin flake8 deps for dev branch 2017-09-25 11:33:20 +01:00
Martin Cech ee6b8b1af8 pin the last flake8
thanks @nsoranzo 🦅 👀
2017-09-19 20:15:44 -04:00
Martin Cech 7fd6813dd7 pin flake8 deps for release 2017-09-19 14:43:00 -04:00
mvdbeek 69365e49ea Install mock-ssh-server or unit testing 2017-08-07 15:06:51 +02:00
John Chilton 2586df4563 Remove pydocstyle pins - there was an update to flake8-docstrings. 2017-05-01 12:02:12 -04:00
Nicola Soranzo be7d1294fd Fix Travix builds which use flake8-docstrings
flake8-docstrings is broken due to the release of pydocstyle 2.0.0 (see
https://gitlab.com/pycqa/flake8-docstrings/issues/19 ), so temporarily add
an extra dep in tox.ini to pin it.
2017-04-26 19:32:21 +01:00
Nicola Soranzo 79c3b23346 Un-pin flake8 and plugins in tox.ini 2017-01-24 19:59:34 +00:00
Nicola Soranzo f882cb9b2e Pin flake8 and plugins in tox.ini
For all tox environments used in .travis.yml except the ones allowed to
fail.
2017-01-24 17:04:16 +00:00
Dannon Baker 387c08b39b Merge branch 'release_16.10' into dev 2017-01-06 11:05:59 -05:00
Dannon Baker 4d73dfc2e0 Merge remote-tracking branch 'upstream/release_16.07' into release_16.10 2017-01-06 10:55:37 -05:00
John Chilton 69fe5ae83a Fix 16.07 linting of imports broken with release of flake8-import-order 0.11.
This is pinned to 0.11 in release_16.10 and unpinned in dev, when merging forward keep these "forward" branches the same (i.e. do not revert to flake8-import-order 0.10).
2016-12-21 21:42:59 -05:00
Nicola Soranzo a26568bdfa Pin flake8 and flake8-import-order
Do not pin when forward-merging to dev branch!
2016-11-30 11:04:47 +00:00
John Chilton 9ae35cb64a Fix typo spotted by @nsoranzo. 2016-10-05 09:17:28 -04:00
John Chilton 56721e7a0f Initial docstring linting.
- Apply one docstring lint to the global lint list (D302 - unicode docstrings should start with u""").
- Create an inclusion list with many more docstring checks (public modules need a docstring, white space and quoting issue, check imperative mood and capitializaton). Add a couple modules to this inclusion list.
- Add tox and Travis targets for this linting.

This gives a person who wants to work on improving Galaxy's in-code docstring documentation three ways to "raise the bar" for the project. One could:
- Add more modules to the inclusion list (.ci/flake8_docstrings_include_list.txt). Many more modules should contain docstrings - especially things in galaxy-lib and web controllers.
- Add more checks to the existing inclusion list checks - I'd say D101 and/or D103 first or any of the missing D2XX or D4XX options. D102 seems a bit too ambitious and I worry it'd be too much of a burden.
- Pick some DXXX check that is ignored globally and fix it for the whole project and then remove it from the exclude list in setup.cfg.
2016-10-04 15:17:09 -04:00
John Chilton 8ca517dc8b More fixes pointed out by @nsoranzo for validation CI. 2016-09-16 15:43:21 -04:00
John Chilton bbf72ef932 CI testing of newly integrated tool schema (XSD).
- Add CI script that lints the XSD definition and then validates all test tools against it.
- Add tox environment to run the aforementioned script.
- Add Travis check through tox to run the script.
- Drop the multi_page.xml test tool - pages have been removed from the framework and are not part of the schema (xref https://github.com/galaxyproject/galaxy/issues/1776).

This will hopefully ensure that all new tool features get added to the schema (as long as there is a test tool for the feature). xref https://github.com/galaxyproject/galaxy/pull/2923 https://github.com/galaxyproject/galaxy/pull/2903

Largely based on work done in Galaxy-XSD by JeanFred (e.g. https://github.com/galaxyproject/Galaxy-XSD/commit/386ba087881877093d4be1f6d8547166f6163f3c)
2016-09-16 13:06:15 -04:00
Nicola Soranzo 9c03d4c16f Merge branch 'release_16.04' into release_16.07
flake8 pinned also for py27-lint-imports-include-list testenv
2016-08-10 16:31:51 +01:00
Nicola Soranzo f2f62f340e Merge branch 'release_16.01' into release_16.04
Conflicts:
	.ci/flake8_blacklist.txt
	tox.ini
2016-08-10 16:19:19 +01:00
Nicola Soranzo f4cb63d6f2 Pin flake8 version
Do not pin when forward-merging to dev branch.
Also ignore .tox/ and eggs/ as in #2650 .
2016-08-10 15:17:21 +01:00
Nicola Soranzo 5c79e27436 Unpin flake8 in py27-lint-imports* test environments
flake8-import-order 0.9 has been released
2016-07-28 15:26:28 +01:00
John Chilton c07bbe010e Add import order linting using tox and flake8-import-order.
Adds two tasks:

- Add a task that just lints everything the way Galaxy's default linting is (py27-lint-imports) and don't enforce it passes on Travis.
- Add a task that just lints a subset we expect to past, hopefully we can grow this subset over time.

Once the inverse of the subset we are testing is just the blacklist, we can eliminate bothtasks and just wrap this into Galaxy's default linting.

These tasks require an older flake8 until https://github.com/PyCQA/flake8-import-order/issues/79#issuecomment-235052270 is part of a released version of flake8.
2016-07-26 14:32:01 -04:00
Nicola Soranzo dc37a5f19c flake8 2.6.2 released 2016-06-25 20:22:06 -04:00