2016-12-20 08:47:31 -06:00
|
|
|
language: python
|
2016-09-05 03:19:40 -05:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2016-11-30 03:37:46 -06:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- TEST_RUNNER_IMAGE="martbab/freeipa-fedora-test-runner:master-latest"
|
|
|
|
matrix:
|
|
|
|
- TESTS_TO_RUN="test_xmlrpc/test_[a-k]*.py"
|
|
|
|
- >
|
|
|
|
TESTS_TO_RUN="test_cmdline
|
|
|
|
test_install
|
|
|
|
test_ipalib
|
|
|
|
test_ipapython
|
|
|
|
test_ipaserver
|
|
|
|
test_pkcs10
|
|
|
|
test_xmlrpc/test_[l-z]*.py"
|
2016-09-05 03:19:40 -05:00
|
|
|
before_install:
|
|
|
|
- pip install pep8
|
2016-11-30 03:37:46 -06:00
|
|
|
- >
|
|
|
|
pip3 install
|
2016-12-20 03:11:20 -06:00
|
|
|
git+https://github.com/freeipa/ipa-docker-test-runner@release-0-2-1
|
2016-09-05 03:19:40 -05:00
|
|
|
|
|
|
|
script:
|
|
|
|
- >
|
|
|
|
if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]];
|
|
|
|
then
|
2016-11-30 03:37:46 -06:00
|
|
|
git diff origin/${TRAVIS_BRANCH} -U0 | pep8 --diff &> pep8_errors.log;
|
2016-09-05 03:19:40 -05:00
|
|
|
fi
|
2016-11-30 03:37:46 -06:00
|
|
|
- "pushd ipatests; test_set=`ls -d -1 $TESTS_TO_RUN 2> /dev/null`; popd"
|
|
|
|
# use travis_wait so that long running tasks (tests) which produce no
|
|
|
|
# output do not cause premature termination of the build
|
|
|
|
- "docker pull ${TEST_RUNNER_IMAGE}"
|
2016-09-05 03:19:40 -05:00
|
|
|
- >
|
2016-11-30 03:37:46 -06:00
|
|
|
travis_wait 50
|
|
|
|
ipa-docker-test-runner -l ci_results_${TRAVIS_BRANCH}.log
|
|
|
|
-c .test_runner_config.yaml
|
|
|
|
--container-image ${TEST_RUNNER_IMAGE}
|
|
|
|
--git-repo ${TRAVIS_BUILD_DIR}
|
|
|
|
run-tests $test_set
|
|
|
|
after_failure:
|
2016-12-20 09:01:00 -06:00
|
|
|
- echo "Test runner output:"; tail -n 5000 ci_results_${TRAVIS_BRANCH}.log
|
|
|
|
- echo "PEP-8 errors:"; cat pep8_errors.log
|