summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 542ac2337a7cb4ab21216faf4c36c7f81ad5e6a9 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
sudo: false
language: python

packages: &build_deps_optional
  - swig
  - libxml2-utils
  - yum
  - libaugeas-dev
  - augeas-lenses
  - libacl1-dev
  - libssl-dev

matrix:
  include:
    - env: PYTHON=2.4 NOSE_EXCLUDE_DIRS=testsuite/Testsrc/Testlib/TestServer
      addons:
        apt:
          sources: [deadsnakes]
          packages: [python2.4, python2.4-dev]
    - env: PYTHON=2.5 NOSE_EXCLUDE_DIRS=testsuite/Testsrc/Testlib/TestServer
      addons:
        apt:
          sources: [deadsnakes]
          packages: [python2.5, python2.5-dev, libbluetooth-dev]

    - python: "2.6"
    - python: "2.6"
      env: WITH_OPTIONAL_DEPS=yes
      addons:
        apt:
          packages: *build_deps_optional
      script: nosetests --show-skipped testsuite

    - python: "2.7"
    - python: "2.7_with_system_site_packages"
      env: WITH_OPTIONAL_DEPS=yes TEST_SPHINX=yes
      addons:
        apt:
          packages: [*build_deps_optional, python-gamin, python-selinux]
      script: nosetests --show-skipped testsuite

before_install:
  - testsuite/prepare-python.sh
  - if test -d "$HOME/custom-virtualenv/"; then source "$HOME/custom-virtualenv/bin/activate"; fi
install:
  - testsuite/install.sh
  - pip install -e .
script:
  - nosetests testsuite
after_failure:
  - pip freeze

branches:
  except:
    - maint-1.2
    - 1.1.0-stable

notifications:
  irc:
    channels:
      - "irc.freenode.org#bcfg2"
    use_notice: true

cache:
  directories:
    - $HOME/.cache/pip
    - $HOME/.cache/wheels
    - $HOME/.cache/xml

before_cache:
  - rm -f $HOME/.cache/pip/log/debug.log
  - rm -f $HOME/.cache/xml/catalog.xml