-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathtox-system_tests.ini
More file actions
71 lines (58 loc) · 2.88 KB
/
Copy pathtox-system_tests.ini
File metadata and controls
71 lines (58 loc) · 2.88 KB
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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nifgen)
[tox]
envlist = py38-nifgen-wheel_dep,py{35,36,37,38}-nifgen-system_tests, py38-nifgen-coverage
skip_missing_interpreters=True
ignore_basepython_conflict=True
# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo
toxworkdir = ../../../.tox
[testenv]
description =
nifgen-wheel_dep: Build the nitclk wheel because we use it in nifgen tests
nifgen-system_tests: Run nifgen system tests (requires NI-FGEN runtime to be installed)
nifgen-coverage: Report all coverage results to codecov.io
changedir =
nifgen-wheel_dep: ../../generated/nitclk
nifgen-system_tests: .
nifgen-coverage: .
commands =
nifgen-wheel_dep: python.exe setup.py bdist_wheel --universal
# --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now
nifgen-system_tests: python -m pip install --disable-pip-version-check --upgrade pip
nifgen-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../..
nifgen-system_tests: python -c "import nifgen; nifgen.print_diagnostic_information()"
nifgen-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifgen --parallel-mode -m py.test ../../src/nifgen/examples --junitxml=../../generated/junit/junit-nifgen-{envname}-{env:BITNESS:64}.xml {posargs}
nifgen-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifgen --parallel-mode -m py.test ../../src/nifgen/system_tests --junitxml=../../generated/junit/junit-nifgen-{envname}-{env:BITNESS:64}.xml {posargs} --durations=5
nifgen-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./
# Create the report to upload
nifgen-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc
# Display the coverage results
nifgen-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc
nifgen-coverage: coveralls --rcfile=../../tools/coverage_system_tests.rc
deps =
nifgen-wheel_dep: packaging
nifgen-system_tests: pytest
nifgen-system_tests: coverage
nifgen-system_tests: numpy
nifgen-system_tests: scipy
nifgen-system_tests: fasteners
nifgen-coverage: coverage
nifgen-coverage: coveralls
depends =
nifgen-coverage: py{35,36,37,38}-nifgen-system_tests
nifgen-system_tests: py38-nifgen-wheel_dep,
passenv =
GIT_BRANCH
GIT_COMMIT
BUILD_URL
BRANCH_NAME
JENKINS_URL
BUILD_NUMBER
JENKINS_HOME
CI_PULL_REQUEST
setenv =
COVERALLS_REPO_TOKEN = AzNHcZZM2ZFPWQ8FuhwPQRCIFs7URdzte
[pytest]
junit_family = xunit1