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