Skip to content

Commit

Permalink
Add custom settings
Browse files Browse the repository at this point in the history
  • Loading branch information
i386x authored and tyll committed Nov 27, 2019
1 parent caed1ff commit 24d8352
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 10 deletions.
69 changes: 59 additions & 10 deletions .travis/config.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,62 @@
# SPDX-License-Identifier: MIT
export LSR_MOLECULE_DEPS='-rmolecule_requirements.txt'
#
# Use this file to specify custom configuration for a project. Generally, this
# involves the modification of the content of LSR_* environment variables, see
#
# * .travis/preinstall:
#
# - LSR_EXTRA_PACKAGES
#
# * .travis/runtox:
#
# - LSR_ANSIBLES
# - LSR_MSCENARIOS
#
# * .travis/runcoveralls.sh:
#
# - LSR_PUBLISH_COVERAGE
#
# Environment variables that not start with LSR_* but have influence on CI
# process:
#
# * run_pylint.py:
#
# - RUN_PYLINT_INCLUDE
# - RUN_PYLINT_EXCLUDE
# - RUN_PYLINT_DISABLED
#
# * .travis/runblack.sh:
#
# - RUN_BLACK_INCLUDE
# - RUN_BLACK_EXCLUDE
# - RUN_BLACK_DISABLED
#
# * .travis/runflake8.sh:
#
# - RUN_FLAKE8_DISABLED
#

LSR_EXTRA_PACKAGES='python3-selinux'
# Allow publishing coverage reports:
export LSR_PUBLISH_COVERAGE=yes

case "${TRAVIS_PYTHON_VERSION}" in
3.6|"")
# Set these also if we are running locally:
export LSR_TEXTRA_DEPS='PyYAML'
export LSR_TEXTRA_DIR='tests'
export LSR_TEXTRA_CMD='./ensure_non_running_provider.py'
;;
esac
##
# lsr_runcoveralls_hook ARGS
#
# ARGS - see .travis/runcoveralls.sh
#
# Called from .travis/runcoveralls.sh.
function lsr_runcoveralls_hook() {
# Add custom commands here.
return 0
}

##
# lsr_runsyspycmd_hook ARGS
#
# ARGS - see .travis/runsyspycmd.sh
#
# Called from .travis/runsyspycmd.sh.
function lsr_runsyspycmd_hook() {
# Add custom commands here.
return 0
}
3 changes: 3 additions & 0 deletions .travis/custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ SYSPYTHON=$(readlink -f $2)
shift 2

# Write your custom commands here that should be run when `tox -e custom`:
if [[ -z "${TRAVIS}" ]] || lsr_check_python_version ${ENVPYTHON} -eq '3.6'; then
(set -x; cd ${TOPDIR}/tests; ${ENVPYTHON} ./ensure_non_running_provider.py)
fi
1 change: 1 addition & 0 deletions custom_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: MIT

# Write requirements for running your custom commands in tox here:
PyYAML
1 change: 1 addition & 0 deletions molecule_extra_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: MIT

# Write extra requirements for running molecule here:
jmespath

0 comments on commit 24d8352

Please sign in to comment.