diff options
author | Martin Babinsky <mbabinsk@redhat.com> | 2016-12-20 16:03:25 +0100 |
---|---|---|
committer | Martin Babinsky <mbabinsk@redhat.com> | 2017-01-05 16:21:51 +0100 |
commit | 149d86de14b00b73f625fefe73c2322a2fffac06 (patch) | |
tree | 37b96911e69e9ab117624df94f2ce2f43e4a561e | |
parent | 1267e3e72305ee6bda0dd348ae1737b6f68f4371 (diff) | |
download | freeipa-149d86de14b00b73f625fefe73c2322a2fffac06.tar.gz freeipa-149d86de14b00b73f625fefe73c2322a2fffac06.tar.xz freeipa-149d86de14b00b73f625fefe73c2322a2fffac06.zip |
Travis: offload test execution to a separate script
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
-rw-r--r-- | .travis.yml | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml index 28f481fdb..8692dd749 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,22 +22,7 @@ before_install: git+https://github.com/freeipa/ipa-docker-test-runner@release-0-2-1 script: - - > - if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]]; - then - git diff origin/${TRAVIS_BRANCH} -U0 | pep8 --diff &> pep8_errors.log; - fi - - "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}" - - > - 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 + - travis_wait 50 ./.travis_run_task.sh after_failure: - echo "Test runner output:"; tail -n 5000 ci_results_${TRAVIS_BRANCH}.log - echo "PEP-8 errors:"; cat pep8_errors.log |