.travis.yml 2.5 KB
Newer Older
Stephan Kuschel's avatar
Stephan Kuschel committed
1
2
3
4
# Check this file before committing a new version:
# http://lint.travis-ci.org/

language: python
Stephan Kuschel's avatar
Stephan Kuschel committed
5
sudo: false
Stephan Kuschel's avatar
Stephan Kuschel committed
6
dist: xenial
Stephan Kuschel's avatar
Stephan Kuschel committed
7

8
9
10
11
12
notifications:
  email:
    on_success: change
    on_failure: change

13
env:
Alexander Blinne's avatar
Alexander Blinne committed
14
  - MATPLOTLIB_V=* NUMPY_V=* SCIPY_V=* CYTHON_V=* PYGMENTS_V="=*"
15
#  - MATPLOTLIB_V=2.0.2 NUMPY_V=* SCIPY_V=* CYTHON_V=*
16

Stephan Kuschel's avatar
Stephan Kuschel committed
17
jobs:
Stephan Kuschel's avatar
Stephan Kuschel committed
18
  fast_finish: true
Stephan Kuschel's avatar
Stephan Kuschel committed
19
20
  allow_failures:
  - python: 2.7  # end of life since Jan 1st, 2020.
21
    # have this allowed as there is a bug in matplotlib 2.1.0
22
#    - env: MATPLOTLIB_V=* NUMPY_V=* SCIPY_V=* CYTHON_V=*
23
  include:
24
25
26
27
    - stage: Fast test
      python: 3.5
      virtualenv:
        system_site_packages: true
Stephan Kuschel's avatar
Stephan Kuschel committed
28
      before_install: skip
Alexander Blinne's avatar
Alexander Blinne committed
29
30
31
      install:
         - pip install 'matplotlib<3.1'
         - pip install -r pip-requirements.txt
Stephan Kuschel's avatar
Stephan Kuschel committed
32
      before_script: skip
33
      script: ./run-tests.py --fast
Stephan Kuschel's avatar
Stephan Kuschel committed
34
35
36

    - stage: Tests
      python: 2.7
Alexander Blinne's avatar
Alexander Blinne committed
37
      env: MATPLOTLIB_V=2.2.3
Stephan Kuschel's avatar
Stephan Kuschel committed
38
    - python: 3.5
Alexander Blinne's avatar
Alexander Blinne committed
39
      env: MATPLOTLIB_V=3.0
Stephan Kuschel's avatar
Stephan Kuschel committed
40
41
    - python: 3.6
    - python: 3.7
Alexander Blinne's avatar
Alexander Blinne committed
42

Alexander Blinne's avatar
Alexander Blinne committed
43
44
45
46
47
48
    # Ubuntu 14.04.5 LTS
    # python 2.6 is explicitly NOT supported!
    - name: "Ubuntu 14.04.5 LTS - Python 3.4"
      python: 3.4
      env: MATPLOTLIB_V=1.3.1 NUMPY_V=1.8.1 SCIPY_V=0.13.3 CYTHON_V=0.20.1 EXTRAPACK="libgfortran<3" PYGMENTS_V="<2.4"

49
50
51
    # Ubuntu 16.04.3 LTS
    - name: "Ubuntu 16.04.3 LTS - Python 2.7"
      python: 2.7
52
      env: MATPLOTLIB_V=1.5.1 NUMPY_V=1.11.0 SCIPY_V=0.17.0 CYTHON_V=0.23.4
53
54
    - name: "Ubuntu 16.04.3 LTS - Python 3.5"
      python: 3.5
55
      env: MATPLOTLIB_V=1.5.1 NUMPY_V=1.11.0 SCIPY_V=0.17.0 CYTHON_V=0.23.4
Alexander Blinne's avatar
Alexander Blinne committed
56

57
58
59
    # Ubuntu 18.04 LTS
    - name: "Ubuntu 18.04 LTS - Python 2.7"
      python: 2.7
60
      env: MATPLOTLIB_V=2.1.1 NUMPY_V=1.13.3 SCIPY_V=0.19.1 CYTHON_V=0.26.1
61
62
    - name: "Ubuntu 18.04 LTS - Python 3.6"
      python: 3.6
63
      env: MATPLOTLIB_V=2.1.1 NUMPY_V=1.13.3 SCIPY_V=0.19.1 CYTHON_V=0.26.1
64

Stephan Kuschel's avatar
Stephan Kuschel committed
65
# Install conda
Stephan Kuschel's avatar
Stephan Kuschel committed
66
before_install:
67
  - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
Stephan Kuschel's avatar
Stephan Kuschel committed
68
69
70
  - chmod +x miniconda.sh
  - ./miniconda.sh -b -p $HOME/miniconda
  - export PATH=$HOME/miniconda/bin:$PATH
71
  - conda update --yes conda;
Stephan Kuschel's avatar
Stephan Kuschel committed
72
  - conda config --append channels anaconda
Alexander Blinne's avatar
Alexander Blinne committed
73
  - conda create -yn pyenv python=$TRAVIS_PYTHON_VERSION atlas numpy=$NUMPY_V scipy=$SCIPY_V matplotlib=$MATPLOTLIB_V nose cython=$CYTHON_V h5py numexpr sphinx pygments$PYGMENTS_V $EXTRAPACK
74
  - source activate pyenv
Stephan Kuschel's avatar
Stephan Kuschel committed
75
76
77
78
79

install:
  - pip install -r pip-requirements.txt

before_script:
Stephan Kuschel's avatar
Stephan Kuschel committed
80
81
82
83
84
  - uname -a
  - free -m
  - df -h
  - ulimit -a
  - python -V
Stephan Kuschel's avatar
Stephan Kuschel committed
85
  - cython --version
Stephan Kuschel's avatar
Stephan Kuschel committed
86
87
88

# run tests
script:
89
  - ./run-tests.py