-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
168 lines (150 loc) · 6.36 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
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
language: python
matrix:
include:
- name: "JUPYTER NOTEBOOK TESTS: SymPy-dev Ubuntu Linux Bionic Python 3.8.6 (Python 3.8 + latest *development* SymPy)"
os: linux
dist: bionic
python: 3.8.6
install:
- sudo apt-get -y install texlive-latex-base pandoc colordiff libgsl-dev
- pip install mpmath jupyter matplotlib scipy
- pip install -U git+https://github.com/sympy/sympy/
script: ./UnitTesting/core_Jupyter_notebook_testsuite.sh
- name: "JUPYTER NOTEBOOK TESTS: Ubuntu Linux Focal (20.04) Python 3.6.12 (Python 3.6 + latest stable SymPy)"
os: linux
dist: focal
python: 3.6.12
before_script: pip install testfixtures
install:
- python --version
- sudo apt-get -y install texlive-latex-base pandoc colordiff libgsl-dev
- pip install scipy sympy mpmath jupyter matplotlib
script: ./UnitTesting/core_Jupyter_notebook_testsuite.sh
# WAYYY TOO SLOW. Don't know why.
# - name: "JUPYTER NOTEBOOK TESTS: Ubuntu Linux Focal (20.04) pypy 3.6 (pypy3 + latest stable SymPy)"
# os: linux
# dist: focal
# python: pypy3.6-7.3.1
# before_script: pypy3 -mpip install testfixtures
# install:
# - python --version
# - sudo apt-get -y install texlive-latex-base pandoc colordiff libgsl-dev
# - sudo apt-get -y install libopenblas0 libopenblas-dev "liblapack*" gfortran
# - pypy3 -mpip install numpy
# - pypy3 -mpip install scipy
# - pypy3 -mpip install sympy mpmath jupyter matplotlib
# script: ./UnitTesting/core_Jupyter_notebook_testsuite.sh
- name: "JUPYTER NOTEBOOK TESTS: SymPy-1.2 Ubuntu Linux Bionic Python 2.7.18 (oldest SymPy version tested/supported by NRPy+ [ref metric])"
os: linux
dist: bionic
python: 2.7.18
install:
- sudo apt-get -y install texlive-latex-base pandoc colordiff libgsl-dev
- pip install mpmath jupyter matplotlib scipy
- pip install sympy==1.2
script: ./UnitTesting/core_Jupyter_notebook_testsuite.sh
- name: "SymPy-dev Ubuntu Linux Xenial pypy3 (only NRPy+ UnitTesting tests with sympy-dev)"
os: linux
dist: xenial
python: pypy3
install:
- pip install mpmath testfixtures
- pip install -U git+https://github.com/sympy/sympy/
- pip install nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh pypy
- name: "Ubuntu Linux Xenial pypy2.7-6.0 (only pypy2.7 test)"
os: linux
dist: xenial
python: pypy2.7-6.0
install:
- pip install mpmath==1.1.0 sympy testfixtures nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh pypy
- name: "Ubuntu Linux Xenial pypy3.5-6.0 (only pypy3.5 test with latest stable SymPy)"
os: linux
dist: xenial
python: pypy3.5-6.0
install:
- pip install nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh pypy3
- name: "Windows Python 3.9 (only Windows test; note Travis considers Windows unsupported/experimental)"
os: windows # Windows 10.0.17134 N/A Build 17134
language: sh # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python
- export PATH="/c/Python39:/c/Python39/Scripts:$PATH"
- ls /c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/opt/bin/
- python -m ensurepip
- python -m pip install --upgrade pip wheel
install:
- pip install mpmath sympy nrpylatex
env:
- PATH=/c/Python39:/c/Python39/Scripts:$PATH
- PYTHONPATH=.:./UnitTesting/:$PYTHONPATH
script: ./UnitTesting/run_NRPy_UnitTests.sh python
- name: "OS X Python 3.7 (one of two OS X tests)"
os: osx
language: sh
python: 3.7
install:
- pip3 install mpmath sympy nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh python3
# https://docs.travis-ci.com/user/languages/python/
- name: "OS X, xcode 10.2 Python 3.7 (one of two OS X tests)"
os: osx
osx_image: xcode10.2 # Python 3.7.2 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
install:
- pip3 install mpmath sympy nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh python3
- name: "Ubuntu Linux Xenial CPython 3.4.5 (earliest Python 3 version tested)"
os: linux
dist: trusty
python: 3.4.5
install:
- pip3 install mpmath sympy
- pip3 install -U git+https://github.com/zachetienne/nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh python3
# According to https://github.com/tornadoweb/tornado/blob/master/.travis.yml:
# 3.5.2 is interesting because it's the version in ubuntu 16.04, and due to python's
# "provisional feature" rules there are significant differences between patch
# versions for asyncio and typing.
- name: "Ubuntu Linux Xenial CPython 3.5.2 (default Python3 version in ubuntu xenial)"
os: linux
dist: xenial
python: 3.5.2
install:
- pip3 install mpmath sympy nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh python3
# Unstable at times (pip / matplotlib broken):
# - name: "Ubuntu Linux Bionic CPython 3.9-dev"
# os: linux
# dist: bionic
# python: 3.9-dev
# script: ./UnitTesting/run_NRPy_UnitTests.sh python3
# Unstable at times (pip / matplotlib broken):
# - name: "Ubuntu Linux Xenial CPython NIGHTLY"
# os: linux
# dist: xenial
# python: nightly
# script: ./UnitTesting/run_NRPy_UnitTests.sh python3
- name: "SymPy1.3, Ubuntu Linux Bionic Python 2.7.18 (earliest versions supported by UnitTests)"
os: linux
dist: bionic
python: 2.7.18
install:
- pip install mpmath sympy==1.3 testfixtures nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh python2
- name: "Ubuntu Linux Bionic Python 3.6.9 (default Python3 in Ubuntu 18.04)"
os: linux
dist: bionic
python: 3.6.9
install:
- pip3 install mpmath sympy nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh python3
- name: "Ubuntu Linux Bionic Python 3.8.3 (closest to NRPy+ core development infrastructure)"
os: linux
dist: bionic
python: 3.8.3
install:
- pip3 install mpmath sympy nrpylatex
script: ./UnitTesting/run_NRPy_UnitTests.sh python3