mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-21 02:11:23 +00:00
Clean-up shell scripts
This commit is contained in:
parent
7181919cc0
commit
9803dfb7f2
3 changed files with 7 additions and 11 deletions
|
|
@ -1,10 +1,10 @@
|
|||
export LSR_MOLECULE_DEPS='-rmolecule_requirements.txt'
|
||||
|
||||
case "x${TRAVIS_PYTHON_VERSION}" in
|
||||
x3.5)
|
||||
case "${TRAVIS_PYTHON_VERSION}" in
|
||||
3.5)
|
||||
LSR_EXTRA_PACKAGES='python3-selinux'
|
||||
;;
|
||||
x3.6|x)
|
||||
3.6|"")
|
||||
# Set these also if we are running locally:
|
||||
export LSR_TEXTRA_DEPS='PyYAML'
|
||||
export LSR_TEXTRA_DIR='tests'
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ if [[ -f ${CONFIG} ]]; then
|
|||
. ${CONFIG}
|
||||
fi
|
||||
|
||||
if [[ "x${LSR_EXTRA_PACKAGES}" != "x" ]]; then
|
||||
if [[ "${LSR_EXTRA_PACKAGES}" ]]; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ${LSR_EXTRA_PACKAGES}
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -10,10 +10,6 @@ if [[ -f ${CONFIG} ]]; then
|
|||
fi
|
||||
|
||||
tox "$@"
|
||||
if [[ "x${LSR_MSCENARIOS}" != "x" ]]; then
|
||||
for X in ${LSR_MSCENARIOS}; do
|
||||
LSR_MSCENARIO=${X} tox -e molecule_lint
|
||||
LSR_MSCENARIO=${X} tox -e molecule_syntax
|
||||
LSR_MSCENARIO=${X} tox -e molecule_test
|
||||
done
|
||||
fi
|
||||
for X in ${LSR_MSCENARIOS}; do
|
||||
LSR_MSCENARIO=${X} tox -e molecule
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue