Skip to content

Commit 4cbab4b

Browse files
author
Kevin Sheppard
committed
MAINT: Remove appveyor and downscale travis
Fix docs to reflect changes Down scale Travis to just docs
1 parent e4c6b6f commit 4cbab4b

File tree

11 files changed

+23
-58
lines changed

11 files changed

+23
-58
lines changed

.travis.yml.back renamed to .travis.yml

+2-40
Original file line numberDiff line numberDiff line change
@@ -43,53 +43,15 @@ jobs:
4343
fast_finish: true
4444
include:
4545
# Documentation build (on Python 3.7 + cutting edge packages). Slowest build
46-
# - python: 3.8
47-
# env:
48-
# - BUILD_INIT=tools/ci/travis_pip.sh
49-
# - USE_MATPLOTLIB=false
50-
# - USE_CVXOPT=false
51-
# - LINT=true
52-
- python: 3.7
46+
- python: 3.8
5347
env:
5448
- PYTHON=${TRAVIS_PYTHON_VERSION}
5549
- DOCBUILD=true
56-
# Python 3.7 + fixed pandas
57-
# - python: 3.7
58-
# env:
59-
# - PYTHON=${TRAVIS_PYTHON_VERSION}
60-
# - PANDAS=0.25
61-
# - NUMPY=1.17
62-
# - SCIPY=1.4
63-
# - COVERAGE=true
64-
# - PYTEST_OPTIONS=
65-
# # Python 3.6 + legacy blas + older pandas
66-
# - python: 3.6
67-
# env:
68-
# - PYTHON=${TRAVIS_PYTHON_VERSION}
69-
# - NUMPY=1.16
70-
# - PANDAS=0.24
71-
# - SCIPY=1.3
72-
# - BLAS="nomkl blas=*=openblas"
73-
# - COVERAGE=true
74-
# - PYTEST_OPTIONS=
75-
# # Python 3.6 + oldest packages
76-
# - python: 3.6
77-
# env:
78-
# - PYTHON=${TRAVIS_PYTHON_VERSION}
79-
# - NUMPY=1.15
80-
# - SCIPY=1.2
81-
# - PANDAS=0.23
82-
# - MATPLOTLIB=2
83-
# - LINT=true
84-
# # Latest pre-release packages
50+
# Latest pre-release packages
8551
- python: 3.8
8652
env:
8753
- PIP_PRE=true
8854
- BUILD_INIT=tools/ci/travis_pip.sh
89-
# - os: osx
90-
# language: generic
91-
# env:
92-
# - PYTHON=3.7
9355

9456
allow_failures:
9557
# pre-testing is a little fragile. Make it an FYI.

CONTRIBUTING.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ So you want to submit a patch to `statsmodels` but are not too familiar with git
5050

5151
1. `Fork <https://help.github.com/articles/fork-a-repo>`_ the `statsmodels repository <https://github.com/statsmodels/statsmodels>`_ on Github.
5252
2. `Create a new feature branch <https://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging>`_. Each branch must be self-contained, with a single new feature or bugfix.
53-
3. Make sure the test suite passes. This includes testing on Python 3. The easiest way to do this is to either enable `Travis-CI <https://travis-ci.org/>`_ on your fork, or to make a pull request and check there.
53+
3. Make sure the test suite passes. This includes testing on Python 3. The easiest way to do this is to make a pull request and let the bot check for you. This can be slow, and if you are unsure about the fix or enhancement, it is best to run pytest locally.
5454
4. Document your changes by editing the appropriate file in ``docs/source/``. If it is a big, new feature add a note and an example to the latest ``docs/source/release/versionX.X.rst`` file. See older versions for examples. If it's a minor change, it will be included automatically in our release notes.
5555
5. Add an example. If it is a big, new feature please submit an example notebook by following `these instructions <https://www.statsmodels.org/devel/dev/examples.html>`_.
5656
6. `Submit a pull request <https://help.github.com/articles/using-pull-requests>`_

README.rst

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
|PyPI Version| |Conda Version| |License| |Travis Build Status| |Azure CI Build Status|
2-
|Appveyor Build Status| |Coveralls Coverage| |PyPI downloads| |Conda downloads|
1+
|PyPI Version| |Conda Version| |License| |Azure CI Build Status|
2+
|Coveralls Coverage| |PyPI downloads| |Conda downloads|
33

44
About statsmodels
55
=================
@@ -174,12 +174,8 @@ Bug reports can be submitted to the issue tracker at
174174

175175
https://github.com/statsmodels/statsmodels/issues
176176

177-
.. |Travis Build Status| image:: https://travis-ci.org/statsmodels/statsmodels.svg?branch=master
178-
:target: https://travis-ci.org/statsmodels/statsmodels
179177
.. |Azure CI Build Status| image:: https://dev.azure.com/statsmodels/statsmodels-testing/_apis/build/status/statsmodels.statsmodels?branch=master
180178
:target: https://dev.azure.com/statsmodels/statsmodels-testing/_build/latest?definitionId=1&branch=master
181-
.. |Appveyor Build Status| image:: https://ci.appveyor.com/api/projects/status/gx18sd2wc63mfcuc/branch/master?svg=true
182-
:target: https://ci.appveyor.com/project/josef-pkt/statsmodels/branch/master
183179
.. |Coveralls Coverage| image:: https://coveralls.io/repos/github/statsmodels/statsmodels/badge.svg?branch=master
184180
:target: https://coveralls.io/github/statsmodels/statsmodels?branch=master
185181
.. |PyPI downloads| image:: https://img.shields.io/pypi/dm/statsmodels.svg?label=Pypi%20downloads

docs/source/about.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ We would also like to thank our hosting providers, `github
7373
and `python.org <https://www.python.org/>`_ for making our downloads available
7474
on PyPi.
7575

76-
We also thank our continuous integration providers,
76+
We also thank our current and previous continuous integration providers, `Azure <https://azure.microsoft.com/>`_,
7777
`Travis CI <https://travis-ci.org/>`_ and `AppVeyor <https://ci.appveyor.com>`_ for
7878
unit testing, and `Codecov <https://codecov.io>`_ and `Coveralls <https://coveralls.io>`_ for
7979
code coverage.

docs/source/dev/index.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ github? Here are the steps you need to take.
6868
2. `Create a new feature branch <https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging>`_.
6969
Each branch must be self-contained, with a single new feature or bugfix.
7070
3. Make sure the test suite passes. This includes testing on Python 3. The
71-
easiest way to do this is to either enable `Travis-CI <https://travis-ci.org/>`_
72-
on your fork, or to make a pull request and check there.
71+
easiest way to do this is to make a pull request and let the bot check for
72+
you. This can be slow, and if you are unsure about the fix or enhancement,
73+
it is best to run pytest locally.
7374
4. `Submit a pull request <https://help.github.com/articles/about-pull-requests/>`_
7475

7576
Pull requests are thoroughly reviewed before being accepted into the codebase.

docs/source/dev/testing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ tested against different dependency and Python versions and architectures.
66
Check these logs periodically, make sure everything looks okay, and fix any
77
failures:
88

9-
* `Travis CI <https://travis-ci.org/statsmodels/statsmodels/builds>`_
10-
* `Appveyor <https://ci.appveyor.com/project/josef-pkt/statsmodels/branch/master>`_
9+
* `Azure Pipelines <https://dev.azure.com/statsmodels/statsmodels-testing/_build?definitionId=1&_a=summary>`_
10+
1111

1212
The test coverage pages are here:
1313

statsmodels/discrete/tests/test_constrained.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def setup_class(cls):
135135
# example without offset
136136
formula = 'deaths ~ logpyears + smokes + C(agecat)'
137137
mod = Poisson.from_formula(formula, data=data)
138-
# get start_params, example fails to converge on one py TravisCI
138+
# get start_params, example fails to converge on one CI run
139139
k_vars = len(mod.exog_names)
140140
start_params = np.zeros(k_vars)
141141
start_params[0] = np.log(mod.endog.mean())
@@ -248,7 +248,7 @@ def setup_class(cls):
248248
formula = 'deaths ~ logpyears + smokes + C(agecat)'
249249
mod = Poisson.from_formula(formula, data=data)
250250

251-
# get start_params, example fails to converge on one py TravisCI
251+
# get start_params, example fails to converge on one CI run
252252
k_vars = len(mod.exog_names)
253253
start_params = np.zeros(k_vars)
254254
start_params[0] = np.log(mod.endog.mean())

statsmodels/imputation/tests/test_bayes_mi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def model_args_fn(x):
8484
r = mi.fit()
8585
r.summary() # smoke test
8686
# TODO: why does the test tolerance need to be so slack?
87-
# There is unexpected variation across versions on travis.
87+
# There is unexpected variation across versions
8888
assert_allclose(r.params, np.r_[
8989
-0.05347919, -0.02479701, 0.10075517], 0.25, 0)
9090

@@ -163,7 +163,7 @@ def model_kwds_fn(x):
163163
r = mi.fit(results_cb=results_cb)
164164
r.summary() # smoke test
165165
# TODO: why does the test tolerance need to be so slack?
166-
# There is unexpected variation across versions on travis.
166+
# There is unexpected variation across versions
167167
assert_allclose(r.params, np.r_[
168168
-0.05347919, -0.02479701, 0.10075517], 0.25, 0)
169169

statsmodels/sandbox/regression/gmm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ def __init__(self, endog, exog, instrument, **kwds):
17211721

17221722
def fitstart(self):
17231723
#todo: replace with or add call to distfn._fitstart
1724-
# added but not used during testing, avoid Travis
1724+
# added but not used during testing
17251725
distfn = self.distfn
17261726
if hasattr(distfn, '_fitstart'):
17271727
start = distfn._fitstart(self.endog)

tools/ci/azure/azure_template_posix.yml

+6
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,9 @@ jobs:
145145
- bash: bash <(curl -s https://codecov.io/bash)
146146
displayName: 'CodeCov upload'
147147
condition: and(eq(variables['coverage'], 'true'), ne(variables['test.install'], 'true'))
148+
continueOnError: true
149+
150+
- script: coveralls
151+
displayName: 'coveralls upload'
152+
condition: and(eq(variables['coverage'], 'true'), ne(variables['test.install'], 'true'))
153+
continueOnError: true

tools/ci/azure/install-posix.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ else
1515
fi
1616

1717
python -m pip install --upgrade pip setuptools wheel
18-
python -m pip install cython pytest pytest-xdist coverage pytest-cov ipython jupyter notebook nbconvert "property_cached>=1.6.3" black==20.8b1 isort flake8 nbconvert==5.6.1
18+
python -m pip install cython pytest pytest-xdist coverage pytest-cov ipython jupyter notebook nbconvert "property_cached>=1.6.3" black==20.8b1 isort flake8 nbconvert==5.6.1 coveralls
1919

2020
if [[ -n ${NUMPY} ]]; then CMD="$CMD==${NUMPY}"; fi;
2121
CMD="$CMD scipy"

0 commit comments

Comments
 (0)