Scott Baker | 5969fc8 | 2019-03-27 12:14:09 -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 | [tox] |
| 16 | envlist = py27,py35,py36,py37 |
| 17 | skip_missing_interpreters = true |
| 18 | skipsdist = True |
| 19 | |
| 20 | [testenv] |
| 21 | deps = |
| 22 | ../lib/xos-config |
| 23 | ../lib/xos-kafka |
| 24 | ../lib/xos-api |
| 25 | ../lib/xos-synchronizer |
| 26 | nose2 |
| 27 | flake8 |
| 28 | |
| 29 | changedir = xos |
| 30 | commands = |
| 31 | nose2 -c ../tox.ini --verbose --junit-xml |
| 32 | flake8 |
| 33 | |
| 34 | [flake8] |
| 35 | max-line-length = 119 |
| 36 | per-file-ignores = synchronizer/migrations/*.py:E501 |
| 37 | |
| 38 | [unittest] |
| 39 | plugins = nose2.plugins.junitxml |
| 40 | |
| 41 | [junit-xml] |
| 42 | path = nose2-results.xml |
| 43 | |
| 44 | [coverage] |
| 45 | always-on = True |
| 46 | coverage-report = |
| 47 | term |
| 48 | xml |