summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 99e0fcc25f52ae91d32b0f9598a4d315ea97700c (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
language: python
# http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
sudo: false

env:
  - TOXENV=py26
  - TOXENV=py27
  - TOXENV=py33
  - TOXENV=pypy
  - TOXENV=py34

install:
  - pip install -q tox 

  # for python versions <27, we must install ordereddict
  # mimicking the same dynamically generated 'requires='
  # in setup.py
  - if [[ "${TOXENV}" == "py25" ]] || [[ "${TOXENV}" == "py26" ]]; then
        pip install -q ordereddict;
    fi

  # for python version =27, install coverage, coveralls.
  # (coverage only measured and published for one version)
  - if [[ "${TOXENV}" == "py34" ]]; then
        pip install -q coverage coveralls;
    fi

script:
  - if [[ "${TOXENV}" == "py27" ]]; then tox -e sa; fi
  - if [[ "${TOXENV}" == "py27" ]]; then tox -e docs; fi
  - tox -e $TOXENV

after_success:
  - if [[ "${TOXENV}" == "py34" ]]; then for f in ._coverage*; do mv $f `echo $f | tr -d '_'`; done; coverage combine; coveralls; fi

notifications:
  email:
    - contact@jeffquast.com