summaryrefslogtreecommitdiff
path: root/ci/templates/.travis.yml
blob: 751558d1c02716844fc1534eaffd2ec0ab7223d2 (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
language: python
sudo: false
cache: pip
env:
  global:
    - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
    - SEGFAULT_SIGNALS=all
  matrix:
    - TOXENV=check
    - TOXENV=docs
matrix:
  include:
{% for env in tox_environments %}
    - python: {{ env.split('-')[0] if env.startswith('pypy') else '{0[2]}.{0[3]}'.format(env) }}
      env:
        - TOXENV={{ env }},report,coveralls,codecov
{% endfor %}
before_install:
  - python --version
  - uname -a
  - lsb_release -a
install:
  - pip install -U tox virtualenv
  - virtualenv --version
  - easy_install --version
  - pip --version
  - tox --version
  - |
    set -ex
    if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then
        (cd $HOME
         wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-5.7.1-linux_x86_64-portable.tar.bz2
         tar xf pypy-5.7.1-linux_x86_64-portable.tar.bz2
         pypy-5.7.1-linux_x86_64-portable/bin/pypy -m ensurepip
         pypy-5.7.1-linux_x86_64-portable/bin/pypy -m pip install -U virtualenv)
        export PATH=$HOME/pypy-5.7.1-linux_x86_64-portable/bin/:$PATH
        export TOXPYTHON=$HOME/pypy-5.7.1-linux_x86_64-portable/bin/pypy
    fi
    if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then
        (cd $HOME
         wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy3.5-5.7.1-beta-linux_x86_64-portable.tar.bz2
         tar xf pypy3.5-5.7.1-beta-linux_x86_64-portable.tar.bz2
         pypy3.5-5.7.1-beta-linux_x86_64-portable/bin/pypy3 -m ensurepip
         pypy3.5-5.7.1-beta-linux_x86_64-portable/bin/pypy3 -m pip install -U virtualenv)
        export PATH=$HOME/pypy3.5-5.7.1-beta-linux_x86_64-portable/bin/:$PATH
        export TOXPYTHON=$HOME/pypy3.5-5.7.1-beta-linux_x86_64-portable/bin/pypy3
    fi
    set +x
script:
  - tox -v
after_failure:
  - more .tox/log/* | cat
  - more .tox/*/log/* | cat
notifications:
  email:
    on_success: never
    on_failure: always