blob: 678a5ec5048156bcdcf038a346ba6bafa7dce290 [file] [log] [blame]
beierlma4a37f72020-06-26 12:55:01 -04001# 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]
16envlist = pep8
17skipsdist = True
18
19[testenv]
20setenv = VIRTUAL_ENV={envdir}
21 PYTHONHASHSEED=0
22whitelist_externals = juju
23passenv = HOME TERM CS_API_* OS_* AMULET_*
beierlma4a37f72020-06-26 12:55:01 -040024install_command =
25 pip install {opts} {packages}
26
David Garcia68faf8d2020-09-01 10:12:16 +020027
28[testenv:build]
29basepython = python3
30passenv=HTTP_PROXY HTTPS_PROXY NO_PROXY
31whitelist_externals = charmcraft
32 rm
33 unzip
34commands =
35 rm -rf release
36 charmcraft build
37 unzip pla.charm -d release
38
beierlma4a37f72020-06-26 12:55:01 -040039[testenv:black]
40basepython = python3
41deps =
42 black
43 yamllint
44commands =
45 black --check --diff src
46 yamllint .
47
48[testenv:pep8]
49basepython = python3
50deps=charm-tools
51commands = charm-proof
52
53[testenv:func-noop]
54basepython = python3
55commands =
56 true
57
58[testenv:func]
59basepython = python3
60commands = functest-run-suite
61
62[testenv:func-smoke]
63basepython = python3
64commands = functest-run-suite --keep-model --smoke
65
66[testenv:venv]
67commands = {posargs}