-
Notifications
You must be signed in to change notification settings - Fork 27
/
tox.ini
53 lines (50 loc) · 1.48 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[tox]
minversion = 3.0.0
envlist =
buildfixture
# CHECK: When the list of supported Python versions change,
# synchronize the change with .travis.yml and appveyor.yml too.
py27
py34
py35
py36
py37
skipsdist = true
[testenv]
skip_install = true
deps =
six
flake8
jsonpath-ng
pytest
py27: python-dateutil
commands =
pip install -f {distdir} -e {distdir}/nirum_fixture
flake8 test/python
pytest {posargs:--ff -vv} test/python
[testenv:buildfixture]
skip_install = true
deps =
passenv = *
whitelist_externals =
stack
commands =
stack exec -- nirum -o {distdir}/nirum_fixture -t python test/nirum_fixture
[testenv:devruntime]
; Use this when the tests against the Python source code generated by
; the compiler require the bleeding-edge version of nirum-python runtime
; (which is not released yet).
skip_install = true
deps =
wget >= 3.2
wheel >= 0.29.0
changedir = {envtmpdir}
whitelist_externals =
mkdir
commands =
python -m wget -o devruntime.zip https://github.com/{env:DEVRUNTIME_REPO:nirum-lang/nirum-python}/archive/{env:DEVRUNTIME_REF:master}.zip
python -m zipfile -e devruntime.zip .
python -c 'import glob, os.path; [os.rename(f, os.path.join(".", os.path.basename(f))) for f in glob.glob("nirum-python-*/*")]'
python setup.py sdist bdist_wheel
mkdir {distdir}
python -c 'import glob, os, sys; [os.rename(f, os.path.join(sys.argv[1], os.path.basename(f))) for f in glob.glob("dist/nirum-*")]' {distdir}