forked from zachetienne/nrpytutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
137 lines (120 loc) · 5.19 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
language: python
matrix:
include:
- name: "JUPYTER NOTEBOOK TESTS: SymPy-dev Ubuntu Linux Bionic Python 3.8.3 (Python 3 + latest *development* SymPy)"
os: linux
dist: bionic
python: 3.8.3
install:
- sudo apt-get -y install texlive-latex-base pandoc colordiff
- 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 Xenial CPython 2.7 (Python 2.7 + latest stable SymPy)"
os: linux
dist: xenial
python: 2.7
before_script: pip install testfixtures
install:
- sudo apt-get -y install texlive-latex-base pandoc colordiff
- pip install sympy mpmath jupyter matplotlib scipy
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
- 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.5-6.0 (only NRPy+ UnitTesting tests with sympy-dev)"
os: linux
dist: xenial
python: pypy3.5-6.0
install:
- pip install mpmath testfixtures
- pip install -U git+https://github.com/sympy/sympy/
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 sympy testfixtures
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
script: ./UnitTesting/run_NRPy_UnitTests.sh pypy3
- name: "Windows Python 3.8.2 (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/Python38:/c/Python38/Scripts:$PATH"
- ls /c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/opt/bin/
- python -m ensurepip
- python -m pip install --upgrade pip wheel
install:
- pip3 install mpmath sympy
env:
- PATH=/c/Python38:/c/Python38/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
before_script: pip3 install mpmath sympy
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
before_script: pip3 install mpmath sympy
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
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
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
before_script: pip install sympy==1.3 mpmath testfixtures
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
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
script: ./UnitTesting/run_NRPy_UnitTests.sh python3