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