mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Travis: build only py2 packages for py2 testing
We will testing both py2 and py3 packages, first step is use only py2 builds for testing py2 packages Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
@@ -17,8 +17,10 @@ env:
|
||||
matrix:
|
||||
- TASK_TO_RUN="lint"
|
||||
- TASK_TO_RUN="run-tests"
|
||||
PYTHON=/usr/bin/python2
|
||||
TESTS_TO_RUN="test_xmlrpc/test_[a-k]*.py"
|
||||
- TASK_TO_RUN="run-tests"
|
||||
PYTHON=/usr/bin/python2
|
||||
TESTS_TO_RUN="test_cmdline
|
||||
test_install
|
||||
test_ipaclient
|
||||
|
||||
@@ -4,10 +4,17 @@
|
||||
#
|
||||
# NOTE: this script is intended to run in Travis CI only
|
||||
|
||||
PYTHON="/usr/bin/python${TRAVIS_PYTHON_VERSION}"
|
||||
test_set=""
|
||||
developer_mode_opt="--developer-mode"
|
||||
|
||||
if [[ $PYTHON == "/usr/bin/python2" ]]
|
||||
then
|
||||
env_opt="--define 'with_python3 0'"
|
||||
else
|
||||
env_opt=""
|
||||
fi
|
||||
|
||||
|
||||
function truncate_log_to_test_failures() {
|
||||
# chop off everything in the CI_RESULTS_LOG preceding pytest error output
|
||||
# if there are pytest errors in the log
|
||||
@@ -43,6 +50,7 @@ ipa-docker-test-runner -l $CI_RESULTS_LOG \
|
||||
-c $TEST_RUNNER_CONFIG \
|
||||
$developer_mode_opt \
|
||||
--container-environment "PYTHON=$PYTHON" \
|
||||
--container-environment "RPMBUILD_OPTS=$env_opt" \
|
||||
--container-image $TEST_RUNNER_IMAGE \
|
||||
--git-repo $TRAVIS_BUILD_DIR \
|
||||
$TASK_TO_RUN $test_set
|
||||
|
||||
Reference in New Issue
Block a user