blob: a8ce26bea9f82f243d1dbd08af087ee90c9d333e [file] [log] [blame]
Zack Williams045b63d2019-01-22 16:30:57 -07001; Copyright 2019-present Open Networking Foundation
2;
3; Licensed under the Apache License, Version 2.0 (the "License");
4; you may not use this file except in compliance with the License.
5; You may obtain a copy of the License at
6;
7; http://www.apache.org/licenses/LICENSE-2.0
8;
9; Unless required by applicable law or agreed to in writing, software
10; distributed under the License is distributed on an "AS IS" BASIS,
11; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12; See the License for the specific language governing permissions and
13; limitations under the License.
14
15; using tox.ini only to store config information for other tools
16
Zack Williams9a766352019-04-09 18:08:05 -070017[tox]
18envlist = py27
19# add to envlist when py3 compat is done py35,py36,py37
20skip_missing_interpreters = true
21skipsdist = True
22
23[testenv]
24deps =
25 -r requirements.txt
26 -e lib/xos-config
27 -e lib/xos-genx
28 multistructlog
29 nose2
30 flake8
Scott Baker6bd238f2019-04-16 16:28:52 -070031 pyfakefs
Zack Williams9a766352019-04-09 18:08:05 -070032
33commands =
34 nose2 -c tox.ini --verbose --junit-xml
35# flake8
36
Zack Williams045b63d2019-01-22 16:30:57 -070037[flake8]
Zack Williams5c2ea232019-01-30 15:23:01 -070038max-line-length = 119
Zack Williams70a67e72019-03-08 12:38:51 -070039
40[unittest]
41plugins = nose2.plugins.junitxml
42code-directories =
Zack Williams70a67e72019-03-08 12:38:51 -070043 coreapi
44
45[junit-xml]
46path = nose2-results.xml
47
48[coverage]
49always-on = True
Zack Williams9a766352019-04-09 18:08:05 -070050coverage =
51 xos
Zack Williamsddb3b562019-03-11 15:46:41 -070052coverage-report =
53 term
54 xml