1 # Copyright 2018 Telefonica S.A.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 envlist = cover, flake8, unittest
22 install_command = python3 -m pip install -r requirements.txt -U {opts} {packages}
31 -rtest
-requirements.txt
34 nose2
-C
--coverage osm_lcm
--plugin nose2.plugins.junitxml
-s osm_lcm
/tests
35 coverage report --omit='*tests*'
36 coverage html -d ./cover --omit='*tests*'
37 coverage xml -o coverage.xml --omit='*tests*'
44 commands = flake8 osm_lcm --max-line-length 120 \
45 --exclude .svn
,CVS
,.gz
,.git
,__pycache__
,.tox
,local
,temp
,frontend_grpc.py
,frontend_pb2.py \
46 --ignore W291
,W293
,E226
,W504
51 commands = python3 -m unittest discover osm_lcm/tests -v
56 setuptools
-version
-command
57 commands = python3 setup.py --command-packages=stdeb.command bdist_deb