Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 1 | ; 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 Williams | 9a76635 | 2019-04-09 18:08:05 -0700 | [diff] [blame] | 17 | [tox] |
| 18 | envlist = py27 |
| 19 | # add to envlist when py3 compat is done py35,py36,py37 |
| 20 | skip_missing_interpreters = true |
| 21 | skipsdist = True |
| 22 | |
| 23 | [testenv] |
| 24 | deps = |
| 25 | -r requirements.txt |
| 26 | -e lib/xos-config |
| 27 | -e lib/xos-genx |
| 28 | multistructlog |
| 29 | nose2 |
| 30 | flake8 |
Scott Baker | 6bd238f | 2019-04-16 16:28:52 -0700 | [diff] [blame] | 31 | pyfakefs |
Scott Baker | 5a7b636 | 2019-06-12 16:56:54 -0700 | [diff] [blame] | 32 | grpcio==1.19.0 |
Zack Williams | 9a76635 | 2019-04-09 18:08:05 -0700 | [diff] [blame] | 33 | |
| 34 | commands = |
| 35 | nose2 -c tox.ini --verbose --junit-xml |
| 36 | # flake8 |
| 37 | |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 38 | [flake8] |
Zack Williams | 5c2ea23 | 2019-01-30 15:23:01 -0700 | [diff] [blame] | 39 | max-line-length = 119 |
Zack Williams | 70a67e7 | 2019-03-08 12:38:51 -0700 | [diff] [blame] | 40 | |
| 41 | [unittest] |
| 42 | plugins = nose2.plugins.junitxml |
| 43 | code-directories = |
Zack Williams | 70a67e7 | 2019-03-08 12:38:51 -0700 | [diff] [blame] | 44 | coreapi |
| 45 | |
| 46 | [junit-xml] |
| 47 | path = nose2-results.xml |
| 48 | |
| 49 | [coverage] |
| 50 | always-on = True |
Zack Williams | 9a76635 | 2019-04-09 18:08:05 -0700 | [diff] [blame] | 51 | coverage = |
| 52 | xos |
Zack Williams | ddb3b56 | 2019-03-11 15:46:41 -0700 | [diff] [blame] | 53 | coverage-report = |
| 54 | term |
| 55 | xml |