forked from qutip/qutip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
114 lines (106 loc) · 3.43 KB
/
.travis.yml
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
sudo: required
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
- nosetests --verbosity=2 --with-coverage --cover-package=qutip 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 nose cython coveralls
- python setup.py install
stage_linux_36: &stage_linux_36
<<: *stage_generic_linux
name: "Python 3.6"
dist: trusty
python: 3.6
stage_linux_37: &stage_linux_37
<<: *stage_generic_linux
name: "Python 3.7"
dist: xenial
python: 3.7
stage_linux_37_openblas: &stage_linux_37_openblas
<<: *stage_generic_linux
name: "Python 3.7 OpenBLAS"
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 nomkl blas=*=openblas numpy scipy nose cython
- python setup.py install
stage_linux_37_omp: &stage_linux_37_omp
<<: *stage_generic_linux
name: "Python 3.7 OpenMP"
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 scipy nose cython coveralls
- python setup.py install --with-openmp
after_success:
- coveralls
stage_osx: &stage_osx
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
- nosetests --verbosity=2 --with-coverage --cover-package=qutip 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=$TRAVIS_PYTHON_VERSION
- source activate test-environment
# - conda install mkl blas=*=mkl numpy scipy nose cython coveralls
- conda install nomkl blas=*=openblas numpy scipy nose cython
- python setup.py install
stages:
- test
jobs:
include:
- stage: test
<<: *stage_linux_36
- stage: test
<<: *stage_linux_37
- stage: test
<<: *stage_linux_37_omp
- stage: test
<<: *stage_linux_37_openblas
- stage: test
<<: *stage_osx