代码拉取完成,页面将自动刷新
language: python
os:
- linux
jobs:
fast_finish: true
include:
- python: 3.8
dist: xenial
script: bin/test quality
env:
- TEST_QUALITY="true"
- python: 3.8
dist: xenial
env:
- TEST_FLAKE8="true"
- python: 3.8
dist: xenial
env:
- TEST_DOCTESTS="true" TEST_SETUP="true" TEST_EXAMPLES="true"
- python: 3.8
dist: xenial
env:
- TEST_SYMPY="true" SPLIT="1/2"
- python: 3.8
dist: xenial
env:
- TEST_SYMPY="true" SPLIT="2/2"
- python: 3.7
dist: xenial
# At the time of writing this is Python 3.7 but it will become 3.8 when
# all of the dependencies are supported on 3.8.
env:
- TEST_ASCII="true"
- TEST_OPT_DEPENDENCY="matchpy numpy scipy gmpy2 matplotlib aesara llvmlite autowrap cython wurlitzer python-symengine tensorflow numexpr ipython antlr-python-runtime>=4.7,<4.8 antlr>=4.7,<4.8 cloudpickle pyglet pycosat lfortran python-clang lxml"
- TEST_SAGE="true"
- SYMPY_STRICT_COMPILER_CHECKS=1
addons:
apt:
packages:
# for aesara
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- python-scipy
# Tensorflow 1 support
- python: 3.9
env:
- TEST_OPT_DEPENDENCY="tensorflow<2 python=3"
- TEST_TENSORFLOW_1=true
- python: 3.8
dist: xenial
env:
- TEST_SPHINX="true"
- secure: "YIEZal9EBTL+fg2YmoZoS8Bvt3eAVUOZjb38CtqpzR2CCSXWoUk35KG23m2NknlY1iKfYJyt7XWBszT/VKOQEbWQq7PIakV4vIByrWacgBxy1x3WC+rZoW7TX+JJiL+y942qIYbMoNMMB8xFpE5RDLSjSecMpFhJJXoafVTvju8="
addons:
apt:
packages:
- graphviz
- chromium-browser
- texlive
- texlive-xetex
- texlive-fonts-recommended
- texlive-latex-extra
- latexmk
- lmodern
- librsvg2-bin
- imagemagick
- docbook2x
- dbus
- python: 3.8
dist: xenial
env:
- TEST_SLOW="true"
- SPLIT="1/2"
- python: 3.8
dist: xenial
env:
- TEST_SLOW="true"
- SPLIT="2/2"
- python: 2.7
dist: xenial
env:
- TEST_PY2_IMPORT="true"
# Note: This never actually fails. The benchmark script doesn't report any
# failure exit code.
- python: 3.9
dist: xenial
env:
- BENCHMARK="true"
before_install:
- set -e
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
- if [[ "${TEST_COVERAGE}" == "true" ]]; then
pip install coverage;
coverage debug sys;
fi
- if [[ "${TEST_FLAKE8}" == "true" ]]; then
pip install flake8;
fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.8" ]; then
pip uninstall -y Cython;
fi
- |
if [[ -n "${TEST_OPT_DEPENDENCY}" ]]; then
# We do this conditionally because it saves us some downloading if the
# version is the same.
deactivate; # Deactivate the Travis virtualenv
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -q -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda;
export PATH="$HOME/miniconda/bin:$PATH";
hash -r;
conda config --set always_yes yes --set changeps1 no;
conda update -q conda;
conda config --prepend channels conda-forge --prepend channels symengine/label/dev;
conda info -a;
# This became very slow: https://github.com/sympy/sympy/issues/20289
# We give it a 30 minute wait for now but hopefully this command will
# stop being so slow.
conda install mamba
travis_wait 30 mamba create -q -n test-environment ${TEST_OPT_DEPENDENCY};
source activate test-environment;
export CPATH=$CONDA_PREFIX/include;
export LIBRARY_PATH=$CONDA_PREFIX/lib;
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib;
conda clean --all;
if [[ "$TEST_SAGE" == "true" ]]; then
# Use a separate environment because sage downgrades matplotlib
conda create -c conda-forge/label/cf201901 -n sage sagelib mpmath "ipython>=5.5.0,<6";
conda clean --all;
fi
elif [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then
if pip list | grep "numpy"; then
pip uninstall -y numpy;
fi
fi
- if [[ "${TEST_SPHINX}" == "true" ]]; then
pip install sphinx "docutils" doctr matplotlib sphinx-math-dollar sphinx-reredirects myst-parser linkify-it-py;
fi
- if [[ "${BENCHMARK}" == "true" ]]; then
pip install asv;
git submodule add https://github.com/sympy/sympy_benchmarks.git;
fi
install:
# If a command fails, fail the build.
- set -e
- if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ];
then virtualenv -p /usr/bin/pypy3 ~/.venv;
. ~/.venv/bin/activate;
fi
# -We:invalid makes invalid escape sequences error in Python 3.6. See
# -#12028.
# SyntaxWarning flag for catching errors in Python3.8
# Issue - #16973. -We:invalid can be dropped from 3.8 onwards, but
# it needs to be there for earlier versions.
#
# This would fail due to invalid Python 2.7 syntax so we disable it while
# testing import under Python 2.
- |
if [[ -z "${TEST_PY2_IMPORT}" ]]; then
if [[ "${TEST_SETUP}" == "true" ]]; then
# The install cycle below is to test installation on systems without
# setuptools.
pip install virtualenv
virtualenv ~/.venv-no-setuptools;
~/.venv-no-setuptools/bin/pip install mpmath;
~/.venv-no-setuptools/bin/pip uninstall -y setuptools;
~/.venv-no-setuptools/bin/python -We:invalid setup.py -q install;
fi
python -We:invalid -We::SyntaxWarning -m compileall -f -q sympy/;
python -We:invalid setup.py -q install;
pip list --format=columns;
fi
script:
# Don't run doctr if the build fails
- set -e
- bin/test_travis.sh
- if [[ "${TEST_SPHINX}" == "true" ]]; then
doctr deploy dev --deploy-repo sympy/sympy_doc --command './generate_indexes.py';
fi
- if [[ "${TEST_COVERAGE}" == "true" ]]; then
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports";
fi
- if [[ "${BENCHMARK}" == "true" ]]; then
asv machine --yes --config asv.conf.travis.json;
asv run --config asv.conf.travis.json;
asv compare master HEAD --config asv.conf.travis.json --factor 1.5;
fi
notifications:
email: false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。