mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-22 10:37:52 +00:00
Install extra packages allways
Do not make extra package installing dependent on TRAVIS_PYTHON_VERSION. Instead, install them if they are available (silently ignore errors about missing packages).
This commit is contained in:
parent
1490a46f47
commit
0ae8076e55
2 changed files with 3 additions and 4 deletions
|
|
@ -1,10 +1,9 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
export LSR_MOLECULE_DEPS='-rmolecule_requirements.txt'
|
||||
|
||||
LSR_EXTRA_PACKAGES='python3-selinux'
|
||||
|
||||
case "${TRAVIS_PYTHON_VERSION}" in
|
||||
3.5)
|
||||
LSR_EXTRA_PACKAGES='python3-selinux'
|
||||
;;
|
||||
3.6|"")
|
||||
# Set these also if we are running locally:
|
||||
export LSR_TEXTRA_DEPS='PyYAML'
|
||||
|
|
|
|||
|
|
@ -12,5 +12,5 @@ fi
|
|||
|
||||
if [[ "${LSR_EXTRA_PACKAGES}" ]]; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ${LSR_EXTRA_PACKAGES}
|
||||
sudo apt-get install -y ${LSR_EXTRA_PACKAGES} || :
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue