Skip to content

Commit

Permalink
MAINT: Revert tep changes to travis
Browse files Browse the repository at this point in the history
Restore test environments
  • Loading branch information
bashtage committed Nov 24, 2019
1 parent 828d4e6 commit b9ffae1
Showing 1 changed file with 88 additions and 16 deletions.
104 changes: 88 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,37 @@ env:
matrix:
fast_finish: true
include:
# Python 2.7 + partially updated numpy, mpl; cutting edge scipy, pandas
- python: 2.7
env:
- PYTHON=2.7
- NUMPY=1.13
- MATPLOTLIB=2.0
- COVERAGE=true
# Python 2.7 + baseline packages
- python: 2.7
env:
- PYTHON=2.7
- NUMPY=1.12
- BLAS= # Do not specify blas in this config due to conflict
- SCIPY=0.19
- PANDAS=0.20
- USEMPL=false
- LINT=true
# Python 3.4 + baseline packages
- python: 3.4
env:
- PYTHON=3.4
- NUMPY=1.11
- SCIPY=0.18
- PANDAS=0.19
- MATPLOTLIB=1.5
- USE_CVXOPT=false
# Python 3.7 + cutting edge packages
- python: 3.7
env:
- PYTHON=3.7
- COVERAGE=true
# Documentation build (on Python 3.6 + cutting edge packages)
- python: 3.7
env:
Expand All @@ -42,6 +73,58 @@ matrix:
- PANDAS=0.24
- DOCBUILD=true
- NUMPY=1.16
# Python 3.6 + legacy blas
- python: 3.6
env:
- PYTHON=3.6
- NUMPY=1.14
- BLAS="nomkl blas=*=openblas"
# Python 3.5 + partially updated packages
- python: 3.5
env:
- PYTHON=3.5
- NUMPY=1.13
- SCIPY=1.0
- PANDAS=0.22
- MATPLOTLIB=2.0
- LINT=true
# Latest pre-release packages
- python: 3.7
env:
- PIP_PRE=true
- BUILD_INIT=tools/ci/travis_pip.sh
- python: 3.8
env:
- BUILD_INIT=tools/ci/travis_pip.sh
- USE_MATPLOTLIB=false
- USE_CVXOPT=false
- os: osx
language: generic
env:
- PYTHON=3.6.6
- NUMPY=1.14
- BUILD_INIT=tools/ci/travis_pip.sh
- os: osx
language: generic
env:
- PYTHON=3.7

allow_failures:
# pre-testing is a little fragile. Make it an FYI.
- python: 3.7
env:
- PIP_PRE=true
- BUILD_INIT=tools/ci/travis_pip.sh
- os: osx
language: generic
env:
- PYTHON=3.6.6
- NUMPY=1.14
- BUILD_INIT=tools/ci/travis_pip.sh
- os: osx
language: generic
env:
- PYTHON=3.7

notifications:
email:
Expand Down Expand Up @@ -81,10 +164,6 @@ before_install:

# Install packages
install:
- git fetch --tags
- git checkout v0.10.2
- export TRAVIS_TAG=v0.10.2
- echo ${TRAVIS_TAG}
- python setup.py develop

before_script:
Expand All @@ -93,25 +172,18 @@ before_script:
script:
# Show versions
- python -c 'import statsmodels.api as sm; sm.show_versions();'
- if [ ${DOCBUILD} = true ]; then cd ${SRCDIR}/docs; source ${SRCDIR}/tools/ci/docbuild.sh; fi;
- cd ${SRCDIR}
- doctr deploy --build-tags --built-docs docs/build/html/ --deploy-repo statsmodels/statsmodels.github.io "$TRAVIS_TAG" > doctr-log.log 2>&1;
- cat doctr-log.log | head -n 20
- cat doctr-log.log | tail -n 20
- doctr deploy --build-tags --built-docs docs/build/html/ --deploy-repo statsmodels/statsmodels.github.io stable > doctr-log.log 2>&1;
- cat doctr-log.log | head -n 20
- cat doctr-log.log | tail -n 20
- exit 0
# docbuild and exit, if required
- if [ ${DOCBUILD} = true ]; then cd ${SRCDIR}/docs; source ${SRCDIR}/tools/ci/docbuild.sh; exit 0; fi;
# Run tests
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export XDIST_OPTS="-n2"
else
export XDIST_OPTS=""
fi
#- echo pytest -r a ${COVERAGE_OPTS} statsmodels --skip-examples ${XDIST_OPTS}
#- pytest -r a ${COVERAGE_OPTS} statsmodels --skip-examples ${XDIST_OPTS}
#- ./lint.sh
- echo pytest -r a ${COVERAGE_OPTS} statsmodels --skip-examples ${XDIST_OPTS}
- pytest -r a ${COVERAGE_OPTS} statsmodels --skip-examples ${XDIST_OPTS}
- ./lint.sh

after_success:
- if [ ${COVERAGE} = true ]; then coveralls; fi
Expand Down

0 comments on commit b9ffae1

Please sign in to comment.