~ballot/mojo/add_tests

« back to all changes in this revision

Viewing changes to tox.ini

  • Committer: mergebot at canonical
  • Author(s): "Stuart Bishop"
  • Date: 2020-06-30 10:55:55 UTC
  • mfrom: (555.1.11 tox)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20200630105555-dq338hgytlos78wh
Use tox for test environment setup

Reviewed-on: https://code.launchpad.net/~stub/mojo/tox/+merge/386313
Reviewed-by: Tom Haddon <tom.haddon@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[tox]
 
2
# trusty - Python 3.4
 
3
# xenial - Python 3.5
 
4
# bionic - Python 3.6
 
5
# focal  - Python 3.8
 
6
#
 
7
# Find Python backports in ppa:deadsnakes/ppa
 
8
# https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
 
9
#
 
10
# List of test environments to run by default
 
11
envlist=lint,check_formatting,py34,py35,py36,py38
 
12
minversion=3.13.2
 
13
skip_missing_interpreters=True
 
14
commands_pre=foo
 
15
 
 
16
[tox:jenkins]
 
17
skip_missing_interpreters=False
 
18
 
 
19
[testenv:lint]
 
20
basepython=python3
 
21
deps=flake8
 
22
commands = python -m flake8 --config=setup.cfg --max-complexity={env:FLAKE8_COMPLEXITY:30} mojo
 
23
 
 
24
[testenv:black]
 
25
basepython=python3.8
 
26
skipsdist=True
 
27
deps=black
 
28
commands = python -m black mojo
 
29
 
 
30
[testenv:check_formatting]
 
31
basepython=python3.8
 
32
skipsdist=True
 
33
deps=black
 
34
commands = python -m black --check mojo
 
35
 
 
36
[testenv]
 
37
deps=-r test-requirements.txt
 
38
commands =
 
39
    nosetests {posargs:} mojo/tests/