summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 63019749ce331926e9ce23cdc7f4675562651052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: python
services:
    - docker

python:
    - "2.7"
cache: pip
env:
    global:
        - TEST_RUNNER_IMAGE="martbab/freeipa-fedora-test-runner:master-latest"
          TEST_RUNNER_CONFIG=".test_runner_config.yaml"
          PEP8_ERROR_LOG="pep8_errors.log"
          CI_RESULTS_LOG="ci_results_${TRAVIS_BRANCH}.log"
          CI_BACKLOG_SIZE=5000
    matrix:
        - 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
            test_install
            test_ipalib
            test_ipapython
            test_ipaserver
            test_pkcs10
            test_xmlrpc/test_[l-z]*.py"
install:
    - pip install pep8
    - >
      pip3 install
      git+https://github.com/freeipa/ipa-docker-test-runner@release-0-2-1

script:
    - travis_wait 50 ./.travis_run_task.sh
after_failure:
    - echo "Test runner output:"; tail -n $CI_BACKLOG_SIZE $CI_RESULTS_LOG
    - echo "PEP-8 errors:"; cat $PEP8_ERROR_LOG