-
Notifications
You must be signed in to change notification settings - Fork 22
/
tox.ini
77 lines (68 loc) · 1.55 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# Tox configuration for testing Anaconda and pip Python SWAT packages.
#
[flake8]
ignore = F401,W503
max-line-length = 90
max-complexity = 80
inline-quotes = single
multiline-quotes = single
[tox]
requires = tox-conda
envlist = {r,mro}-{base}
toxworkdir = {env:TOX_WORK_DIR:{toxinidir}/.tox}
skipsdist = True
whitelist_externals =
/bin/rm
[testenv]
basepython = python3.6
setenv =
PATH = {envbindir}:/usr/bin:/bin
passenv =
CASURL
CAS_URL
CASHOST
CAS_HOST
CASPORT
CAS_PORT
CASPROTOCOL
CAS_PROTOCOL
CASUSER
CAS_USER
CASPASSWORD
CAS_PASSWORD
CASTOKEN
CAS_TOKEN
CONDA_PKGS_DIRS
CONDA_CHANNEL_URL
CONDA_SUBDIR
PYPI_URL
NOSETESTS_ARGS
SWAT_VERSION_EXPR
WINDIR
conda_deps =
conda
r-httr
r-jsonlite
r-testthat
# cd to anything but the default {toxinidir}.
changedir = {envdir}
[testenv:conda]
commands =
- /bin/rm -rf {env:CONDA_PKGS_DIRS:/tmp}/r-swat-*
- {envbindir}/conda uninstall -y -q r-swat
{envbindir}/conda install -y -q -c {env:CONDA_CHANNEL_URL:conda} -c sas-institute r-swat{env:SWAT_VERSION_EXPR:}
{envbindir}/conda list --show-channel-urls r-swat
{envbindir}/R -e "testthat::test_package('swat', stop_on_failure=TRUE)"
- {envbindir}/conda uninstall -y -q r-swat
- /bin/rm -rf {env:CONDA_PKGS_DIRS:/tmp}/r-swat-*
[testenv:r-base]
commands = {[testenv:conda]commands}
conda_deps =
r-base
{[testenv]conda_deps}
[testenv:mro-base]
commands = {[testenv:conda]commands}
conda_deps =
mro-base
{[testenv]conda_deps}