forked from SteveDoyle2/pyNastran
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
211 lines (184 loc) · 6.42 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# libraries
# libegl1-mesa - make Qt work without a backend
#
#os:
# - linux
# - osx
dist: xenial
git:
quiet: true
language: python
# # https://github.com/travis-ci/travis-ci/issues/9815
# dist: xenial
# sudo: true
# - "3.8-dev" # 3.8 development branch
# - "nightly" # currently points to 3.8-dev
# numpy:
# - 1.12 min for 3.6 (bumped for reqs)
# - 1.15 min for 3.7
# scipy:
# - 0.19 min for 3.6
# - ??? min for 3.7
# matplotlib:
# - 2.1 min for 3.6
# - 2.2 min for 3.7
matrix:
allow_failures:
#--------------------------------------------------------------------------------------------------
# latest versions of package
- name: "Python 3.8 (PyQt5)"
python: '3.8'
env:
- NUMPY='numpy scipy matplotlib h5py vtk pyqt5 pandas>=0.25 imageio pillow>5.2,!=7.1.0'
#- LIB='libblas-dev liblapack-dev'
- LIBH5='libhdf5-dev'
#- name: "Python 3.8 (no vtk/qt)"
# python: '3.8'
# env:
# - NUMPY='numpy scipy matplotlib h5py pandas>=0.25'
# - NOGUI='_no_gui'
# #- LIB='libblas-dev liblapack-dev'
# - LIBH5='libhdf5-dev'
- name: "Python 3.7 (PyQt5)"
python: '3.7'
env:
- NUMPY='numpy scipy matplotlib h5py vtk pyqt5 pandas>=0.25 imageio pillow>5.2,!=7.1.0'
#--------------------------------------------------------------------------------------------------
# old versions of packages
#- name: "Python 3.7 old packages"
# python: '3.7'
# env:
# #- NUMPY='numpy==1.15 scipy==0.19 matplotlib==2.2' # doesn't work
# # - bumped scipy from 1.0 to 1.1 for compatibility with numpy
# # - no pyside2 on conda
# # - bumped from numpy 1.14 to 1.14.5 for py3.7 pypi compatibility
# - NUMPY='numpy==1.14.5 scipy==1.1 matplotlib==2.2 h5py vtk pyqt5 pandas<0.25'
#--------------------------------------------------------------------------------------------------
include:
#--------------------------------------------------------------------------------------------------
# latest versions of package
- name: "Python 3.8 (PyQt5)"
python: '3.8'
#services: xvfb
env:
- NUMPY='numpy scipy matplotlib h5py vtk pyqt5 pandas>=0.25 imageio pillow>5.2,!=7.1.0'
#- LIB='libblas-dev liblapack-dev'
#- LIB='libegl1-mesa'
- LIBH5='libhdf5-dev'
#- XVFB='xvfb-run --auto-servernum -e /dev/stdout'
- name: "Python 3.8 (no vtk/qt)"
python: '3.8'
#services: xvfb
env:
- NUMPY='numpy scipy matplotlib h5py pandas>=0.25'
- NOGUI='_no_gui'
#- LIB='libblas-dev liblapack-dev'
- LIBH5='libhdf5-dev'
#- XVFB='xvfb-run --auto-servernum -e /dev/stdout'
- name: "Python 3.7 (PyQt5)"
python: '3.7'
#services: xvfb
env:
- NUMPY='numpy scipy matplotlib h5py vtk pyqt5 pandas>=0.25 imageio pillow>5.2,!=7.1.0'
#- LIB='libegl1-mesa'
#- XVFB='xvfb-run --auto-servernum -e /dev/stdout'
#- XVFB=''
- name: "Python 3.7 (PySide2, no matplotlib)"
python: '3.7'
#services: xvfb
env:
- NUMPY='numpy scipy h5py vtk PySide2 pandas>=0.25'
#- LIB='libegl1-mesa'
#- XVFB='xvfb-run --auto-servernum -e /dev/stdout'
#--------------------------------------------------------------------------------------------------
# old versions of packages
- name: "Python 3.7 old packages"
python: '3.7'
#services: xvfb
env:
#- NUMPY='numpy==1.15 scipy==0.19 matplotlib==2.2' # doesn't work
# - bumped scipy from 1.0 to 1.1 for compatibility with numpy
# - bumped from numpy 1.14 to 1.14.5 for py3.7 pypi compatibility
- NUMPY='numpy==1.14.5 scipy==1.1 matplotlib==2.2 h5py vtk pyqt5 pandas<0.25'
#- LIB='libegl1-mesa'
#- XVFB='xvfb-run --auto-servernum -e /dev/stdout'
#--------------------------------------------------------------------------------------------------
# the most basic of pyNastran - no matplotlib, h5py, pandas, or even six
- name: "Python 3.8 (basic)"
python: '3.8'
env:
- NUMPY='numpy scipy'
- NOGUI='_no_gui'
- LIB='libblas-dev liblapack-dev'
- name: "Python 3.7 (basic)"
python: '3.7'
env:
- NUMPY='numpy scipy'
- NOGUI='_no_gui'
#-------------------------------------------------
# old-A
#before_install:
# - sudo apt-get update -qq
# - sudo apt-get install -qq python-dev python-setuptools python3-dev python3-setuptools libblas-dev liblapack-dev libatlas-base-dev gfortran
#
# command to install dependencies
#install: "pip install -r requirements.txt"
#
# command to run tests
#script: nosetests
#script: "python pyNastran/all_tests.py"
#-------------------------------------------------
#new-B
# per https://gist.github.com/dan-blanchard/7045057
#notifications:
# email: false
# Setup anaconda
before_install:
- sudo -H pip install auxlib
# per http://conda.pydata.org/docs/travis.html
install:
# atlas
- echo "python=$TRAVIS_PYTHON_VERSION ${NUMPY}"
- sudo apt-get update
- sudo apt-get install ${LIB} ${LIBH5} gfortran
# We do this conditionally because it saves us some downloading if the
# version is the same.
# if line per https://docs.travis-ci.com/user/multi-os/
- echo "python version=$TRAVIS_PYTHON_VERSION"
#===install dependencies===
#-----------pip------------
- python -m pip install pip setuptools --upgrade
- pip install ${NUMPY}
- pip list
#----------run-----------
- python setup${NOGUI}.py develop
#before_script:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3
# Run test
script:
#- nosetests --with-cov --cov YOUR_PACKAGE_NAME_HERE --cov-config .coveragerc --logging-level=INFO
- ${XVFB} coverage run pyNastran/all_tests${NOGUI}.py
# good
#- coverage run pyNastran/all_tests${NOGUI}.py
# good
#- "python pyNastran/all_tests.py"
#- "python -m coverage run pyNastran/all_tests_no_gui.py"
# good
#- "coverage run pyNastran/all_tests_no_gui.py"
# https://github.com/z4r/python-coveralls
# Calculate coverage
after_success:
- ls
# python-coverage
#usage: coveralls [-h] [--coveralls_url COVERALLS_URL] [--base_dir BASE_DIR]
# [--data_file DATA_FILE] [--config_file CONFIG_FILE]
# [--coveralls_yaml COVERALLS_YAML] [--ignore-errors]
# [--merge_file MERGE_FILE] [--nogit] [--skip_ssl_verify]
#- coveralls --ignore-errors
# coverage
#- coveralls debug
- codecov
#after_success:
# - coveralls --config_file .coveragerc