-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathtox.ini
38 lines (33 loc) · 958 Bytes
/
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
[tox]
envlist = py27
skipsdist = True
skip_install = True
tox_pip_extensions_ext_venv_update = true
[testenv]
passenv =
SPLUNK_HOME
setenv =
PYTHONPATH = {env:SPLUNK_HOME}/etc/apps/Splunk_ML_Toolkit/bin
APP_NAME = {env:APP_NAME:SA_mltk_contrib_app}
BUILD_DIR = {toxinidir}/target
deps = -r{toxinidir}/requirements_1.2.txt
commands = pytest {posargs}
[testenv:package-macos]
platform = darwin
deps =
changedir = {env:BUILD_DIR}
whitelist_externals = /bin/bash
commands =
/bin/bash -c 'tar -C {toxinidir} -s ",^src/,{env:APP_NAME}/," -cvzf {env:APP_NAME}.tgz src/\{bin,default,metadata\}'
[testenv:package-linux]
platform = linux
deps =
changedir = {env:BUILD_DIR}
whitelist_externals = /bin/bash
commands =
/bin/bash -c 'tar -C {toxinidir} --transform="s,^src/,{env:APP_NAME}/," -cvzf {env:APP_NAME}.tgz src/\{bin,default,metadata\}'
[testenv:clean]
deps =
whitelist_externals = /bin/rm
commands =
/bin/rm -rf {env:BUILD_DIR}