diff --git a/.travis/local_test.sh b/.travis/local_test.sh new file mode 100755 index 0000000000..2a604e7ee8 --- /dev/null +++ b/.travis/local_test.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash + +# WARNING: DO NOT EDIT! +# +# This file was generated by plugin_template, and is managed by bootstrap.py. Please use +# bootstrap.py to update this file. +# +# For more info visit https://github.com/pulp/plugin_template + +set -euv + +# Copy current dir to /tmp +cd .. +mkdir -p /tmp/CI_env +cp -R ./galaxy_ng /tmp/CI_env +cd /tmp/CI_env/galaxy_ng + +# Setting travis env vars - https://docs.travis-ci.com/user/environment-variables/#default-environment-variables +export TRAVIS_BUILD_DIR=$PWD +export TRAVIS_PULL_REQUEST=false +export TRAVIS_TAG="" +export TRAVIS_BRANCH=$(git rev-parse --abbrev-ref HEAD) +export TRAVIS_PULL_REQUEST_BRANCH=$(git rev-parse --abbrev-ref HEAD) + +# Specify the test +export TEST="${TEST:-pulp}" + + +.travis/before_install.sh +.travis/install.sh +.travis/before_script.sh +.travis/script.sh + +# SELinux trick for: [Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!] +https://github.com/ansible-community/molecule/issues/1724#issuecomment-460610492