2016-12-20 08:47:31 -06:00
|
|
|
language: python
|
2016-09-05 03:19:40 -05:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2016-12-21 03:16:47 -06:00
|
|
|
python:
|
|
|
|
- "2.7"
|
2016-12-21 03:30:49 -06:00
|
|
|
cache: pip
|
2016-11-30 03:37:46 -06:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- TEST_RUNNER_IMAGE="martbab/freeipa-fedora-test-runner:master-latest"
|
2016-12-20 09:04:02 -06:00
|
|
|
TEST_RUNNER_CONFIG=".test_runner_config.yaml"
|
|
|
|
PEP8_ERROR_LOG="pep8_errors.log"
|
|
|
|
CI_RESULTS_LOG="ci_results_${TRAVIS_BRANCH}.log"
|
2016-11-30 03:37:46 -06:00
|
|
|
matrix:
|
2016-12-20 09:04:02 -06:00
|
|
|
- TASK_TO_RUN="lint"
|
|
|
|
- TASK_TO_RUN="run-tests"
|
|
|
|
TESTS_TO_RUN="test_xmlrpc/test_[a-k]*.py"
|
|
|
|
- TASK_TO_RUN="run-tests"
|
|
|
|
TESTS_TO_RUN="test_cmdline
|
2016-11-30 03:37:46 -06:00
|
|
|
test_install
|
|
|
|
test_ipalib
|
|
|
|
test_ipapython
|
|
|
|
test_ipaserver
|
|
|
|
test_pkcs10
|
|
|
|
test_xmlrpc/test_[l-z]*.py"
|
2016-12-21 03:30:49 -06:00
|
|
|
install:
|
2016-09-05 03:19:40 -05:00
|
|
|
- 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:
|
2016-12-20 09:03:25 -06:00
|
|
|
- travis_wait 50 ./.travis_run_task.sh
|
2016-11-30 03:37:46 -06:00
|
|
|
after_failure:
|
2016-12-20 09:04:02 -06:00
|
|
|
- echo "Test runner output:"; tail -n 5000 $CI_RESULTS_LOG
|
|
|
|
- echo "PEP-8 errors:"; cat $PEP8_ERROR_LOG
|