2
# This file is part of Checkbox.
4
# Copyright 2014 Canonical Ltd.
6
# Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
8
# Checkbox is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License version 3,
10
# as published by the Free Software Foundation.
12
# Checkbox is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
20
# Helper script to develop all the local providers
21
# ================================================
25
# Ensure that CHECKBOX_TOP is not empty
26
if [ "$CHECKBOX_TOP" = "" ]; then
27
echo "E: this script requires \$CHECKBOX_TOP"
31
# Ensure that PROVIDERPATH is not empty
32
if [ "$PROVIDERPATH" = "" ]; then
33
echo "E: this script requires \$PROVIDERPATH"
37
for provider in $CHECKBOX_TOP/providers/plainbox-provider-* $CHECKBOX_TOP/providers/2015.com.canonical.certification:qml-tests; do
38
provider=$(basename "$provider")
39
echo "I: running 'develop' on $provider"
40
( cd $CHECKBOX_TOP/providers/$provider && python3 manage.py develop --force --directory=$PROVIDERPATH )