Fix juju status in OSM Charms
[osm/devops.git] / installers / charm / ng-ui / tox.ini
1 # Copyright 2020 Canonical Ltd.
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 [tox]
15 envlist = pep8
16 skipsdist = True
17
18 [testenv]
19 setenv = VIRTUAL_ENV={envdir}
20 PYTHONHASHSEED=0
21 whitelist_externals = juju
22 passenv = HOME TERM CS_API_* OS_* AMULET_*
23 install_command =
24 pip install {opts} {packages}
25
26 [testenv:build]
27 basepython = python3
28 passenv=HTTP_PROXY HTTPS_PROXY NO_PROXY
29 whitelist_externals = charmcraft
30 rm
31 unzip
32 commands =
33 rm -rf release
34 charmcraft build
35 unzip ng-ui.charm -d release
36
37 [testenv:black]
38 basepython = python3
39 deps =
40 black
41 yamllint
42 commands =
43 black --check --diff src
44 yamllint .
45
46 [testenv:pep8]
47 basepython = python3
48 deps=charm-tools
49 commands = charm-proof
50
51 [testenv:func-noop]
52 basepython = python3
53 commands =
54 true
55
56 [testenv:func]
57 basepython = python3
58 commands = functest-run-suite
59
60 [testenv:func-smoke]
61 basepython = python3
62 commands = functest-run-suite --keep-model --smoke
63
64 [testenv:venv]
65 commands = {posargs}