File: .travis.yml

package info (click to toggle)
qutip 4.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,764 kB
  • sloc: python: 38,325; cpp: 344; makefile: 36; sh: 12
file content (182 lines) | stat: -rw-r--r-- 6,094 bytes parent folder | download
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# After changing this file, check it on:
#   http://lint.travis-ci.org/

_stage_generic_linux: &stage_generic_linux
  os: linux
  language: python
  # change dir
  before_script:
    - mkdir qutip_testing
    - cd qutip_testing
  # command to run tests
  script:
    - python -m qutip.about
    - pytest --verbosity=1 --disable-pytest-warnings --cov=qutip --pyargs qutip
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install mkl blas=*=mkl numpy scipy pytest pytest-cov cython coveralls
    - python setup.py install

_stage_linux_36: &stage_linux_36
  <<: *stage_generic_linux
  name: "Python 3.6"
  dist: trusty
  python: 3.6
  script:
    - python -m qutip.about
    - pytest --verbosity=1 --disable-pytest-warnings --cov=qutip --pyargs qutip -m "not slow"

_stage_linux_37: &stage_linux_37
  <<: *stage_generic_linux
  name: "Python 3.7"
  dist: xenial
  python: 3.7
  script:
    - python -m qutip.about
    - pytest --verbosity=1 --disable-pytest-warnings --cov=qutip --pyargs qutip -m "not slow"

_stage_linux_38: &stage_linux_38
  <<: *stage_generic_linux
  name: "Python 3.8"
  dist: xenial
  python: 3.8
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install 'numpy>=1.16.6,<1.20' scipy pytest pytest-cov cython coveralls
    - python setup.py install


_stage_linux_no_cython: &stage_linux_no_cython
  <<: *stage_generic_linux
  name: "Python 3.6 no cython, openblas"
  dist: xenial
  python: 3.6
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install blas=*=openblas 'numpy>=1.16.6,<1.20' scipy pytest pytest-cov cython
    - conda list
    - python setup.py install
    - conda uninstall cython

_stage_linux_38_openblas: &stage_linux_38_openblas
  <<: *stage_generic_linux
  name: "Python 3.8 OpenBLAS"
  dist: xenial
  python: 3.8
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install nomkl blas=*=openblas 'numpy>=1.16.6,<1.20' scipy pytest pytest-cov cython
    - python setup.py install

_stage_linux_omp: &stage_linux_omp
  <<: *stage_generic_linux
  name: "Python 3.7 OpenMP, mkl, scipy<1.5"
  dist: xenial
  python: 3.7
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install mkl blas=*=mkl 'numpy>=1.16.6,<1.20' 'scipy<1.5' pytest pytest-cov cython coveralls
    - python setup.py install --with-openmp
  after_success:
    - coveralls

_stage_osx_37: &stage_osx_37
  os: osx
  name: "Python 3.7, OSX 10.13, XCode 10"
  osx_image: xcode10
  language: generic
  # change dir
  before_script:
    - mkdir qutip_testing
    - cd qutip_testing
  # command to run tests
  script:
    - python -m qutip.about
    - pytest --verbosity=1 --disable-pytest-warnings --cov=qutip --pyargs qutip
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=3.7
    - source activate test-environment
    - conda install nomkl blas=*=openblas 'numpy>=1.16.6,<1.20' scipy pytest pytest-cov cython
    - python setup.py install

_stage_osx_38: &stage_osx_38
  os: osx
  name: "Python 3.8, OSX 10.13, XCode 10"
  osx_image: xcode10
  language: generic
  # change dir
  before_script:
    - mkdir qutip_testing
    - cd qutip_testing
  # command to run tests
  script:
    - python -m qutip.about
    - pytest --verbosity=1 --disable-pytest-warnings --cov=qutip --pyargs qutip -m "not slow"
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=3.8
    - source activate test-environment
    - conda install nomkl blas=*=openblas 'numpy>=1.16.6,<1.20' scipy pytest pytest-cov cython
    - python setup.py install

stages:
  - test

jobs:
  include:
    - stage: test
      <<: *stage_linux_38
    - stage: test
      <<: *stage_linux_omp
    - stage: test
      <<: *stage_linux_no_cython
    - stage: test
      <<: *stage_osx_37
    - stage: test
      <<: *stage_osx_38