1 Star 0 Fork 5

哑幸福/statsmodels

forked from 连享会/statsmodels 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 3.69 KB
一键复制 编辑 原始数据 按行查看 历史
thequackdaddy 提交于 2018-02-25 23:29 . All we have to do is update conda
# Travis script that uses miniconda in place of the system installed python
# versions. Allows substantial flexibility for choosing versions of
# required packages and is simpler to use to test up-to-date scientific Python
# stack
dist: trusty
sudo: required
language: python
env:
# Default values for common packages, override as needed
global:
- OPTIONAL=
- COVERAGE=false
- USEMPL=true
- MATPLOTLIB=
- DOCBUILD=false
matrix:
fast_finish: true
include:
- python: 2.7
env:
- PYTHON=3.6
- COVERAGE=true
- python: 2.7
env:
- PYTHON=2.7
- NUMPY=1.11
- MATPLOTLIB=1.5
- COVERAGE=true
- python: 2.7
env:
- PYTHON=3.5
- NUMPY=1.10
- SCIPY=0.17
- PANDAS=0.18
- MATPLOTLIB=1.5
- python: 2.7
env:
- PYTHON=3.4
- NUMPY=1.10
- SCIPY=0.16
- PANDAS=0.16
- MATPLOTLIB=1.4
- OPTIONAL="libgfortran=1.0"
- python: 2.7
env:
- PYTHON=3.6
- DOCBUILD=true
- python: 2.7
env:
- PYTHON=2.7
- NUMPY=1.9
- SCIPY=0.15
- PANDAS=0.15
- USEMPL=false
- OPTIONAL="libgfortran=1.0"
- python: 2.7
env:
- PYTHON=3.3
- NUMPY=1.9
- SCIPY=0.14
- MATPLOTLIB=1.4
- PANDAS=0.14
notifications:
email:
on_success: always
# Setup anaconda
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- export MKL_NUM_THREADS=1
- export NUMEXPR_NUM_THREADS=1
- export OMP_NUM_THREADS=1
- conda config --set always_yes yes
- conda update --quiet conda
# Fix for headless TravisCI
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# Avoid noise from matplotlib
- mkdir -p $HOME/.config/matplotlib
- SRCDIR=$PWD
# Build package list to avoid empty package=versions; only needed for versioned packages
- PKGS="python=${PYTHON}"
- PKGS="${PKGS} numpy"; if [ ${NUMPY} ]; then PKGS="${PKGS}=${NUMPY}"; fi
- PKGS="${PKGS} scipy"; if [ ${SCIPY} ]; then PKGS="${PKGS}=${SCIPY}"; fi
- PKGS="${PKGS} patsy"; if [ ${PATSY} ]; then PKGS="${PKGS}=${PATSY}"; fi
- PKGS="${PKGS} pandas"; if [ ${PANDAS} ]; then PKGS="${PKGS}=${PANDAS}"; fi
- PKGS="${PKGS} Cython"; if [ ${CYTHON} ]; then PKGS="${PKGS}=${CYTHON}"; fi
- if [ ${USEMPL} = true ]; then PKGS="${PKGS} matplotlib"; if [ ${MATPLOTLIB} ]; then PKGS="${PKGS}=${MATPLOTLIB}"; fi; fi
- if [ ${COVERAGE} = true ]; then export COVERAGE_OPTS=" --cov-config=.travis_coveragerc --cov=statsmodels "; else export COVERAGE_OPTS=""; fi
- echo conda create --yes --quiet -n statsmodels-test ${PKGS} ${OPTIONAL} pyyaml
- conda create --yes --quiet -n statsmodels-test ${PKGS} ${OPTIONAL} pyyaml joblib
- source activate statsmodels-test
- pip install 'pytest<4' pytest-xdist nose
- if [ ${COVERAGE} = true ]; then pip install codecov coverage coveralls pytest-cov; fi
- if [ ${DOCBUILD} = true ]; then bash tools/ci_docbuild_install.sh; fi;
- export SRCDIR=$PWD
# Ensure tests are correctly gathered by xdist
- export PYTHONHASHSEED=0
# Install packages
install:
- python setup.py build_ext --inplace
- python setup.py develop
script:
# Show versions
- python -c 'import statsmodels.api as sm; sm.show_versions();'
# docbuild and exit, if required
- if [ ${DOCBUILD} = true ]; then cd ${SRCDIR}/docs; bash ${SRCDIR}/tools/ci_docbuild.sh; exit 0; fi;
# Run tests
- echo pytest -n 2 ${COVERAGE_OPTS} statsmodels --skip-examples
- pytest ${COVERAGE_OPTS} statsmodels --skip-examples
after_success:
- if [ ${COVERAGE} = true ]; then coveralls --rcfile=${SRCDIR}/.travis_coveragerc; fi
- if [ ${COVERAGE} = true ]; then codecov; fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/JerryR/statsmodels.git
git@gitee.com:JerryR/statsmodels.git
JerryR
statsmodels
statsmodels
master

搜索帮助