Clean-up shell scripts

This commit is contained in:
Jiri Kucera 2019-09-12 10:51:49 +02:00
parent 7181919cc0
commit 9803dfb7f2
3 changed files with 7 additions and 11 deletions

View file

@ -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'

View file

@ -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

View file

@ -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