1 Star 0 Fork 0

Tim55667757 / PriceGenerator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
Tim55667757 提交于 2023-11-25 17:28 . release builds was disabled
language: python
python: "3.9"
branches:
only:
- /^release-.*$/
# - master
# - develop
stages:
- env-test-build-publish
jobs:
include:
- stage: env-test-build-publish
name: "Stages: PRE-BUILDING -> TESTING -> BUILDING -> PUBLISHING to PyPI"
install:
- echo "---> Running PRE-BUILDING stage..."
- python -m pip install --upgrade pip --force-reinstall
- pip install setuptools==59.5.0 --force-reinstall
- pip install urllib3==1.26.6 --force-reinstall
- pip install -r requirements.txt
before_script:
- export PYTHONPATH=$PYTHONPATH:$PWD:$PWD/pricegenerator:$PWD/tests
script:
- echo "---> Running TESTING stage..."
- pytest tests -v --disable-pytest-warnings
- echo "---> Running BUILDING stage..."
- python setup.py sdist bdist_wheel
- |
if [ $TRAVIS_PULL_REQUEST == false ]; then
echo "---> Running PUBLISHING to PyPI stage...";
python -m twine upload --verbose dist/* --skip-existing;
else
echo "---> SKIPPING PUBLISHING to PyPI stage, because this is Pull Request build";
fi
after_failure:
- echo "Some issues occurred. See full logs."
after_success:
- |
if [ $TRAVIS_PULL_REQUEST == false ]; then
echo "All stages PRE-BUILDING -> TESTING -> BUILDING -> PUBLISHING to PyPI - done";
else
echo "All PR stages PRE-BUILDING -> TESTING -> BUILDING -> [PUBLISHING to PyPI][SKIPPED] - done";
fi
Python
1
https://gitee.com/tim55667757/PriceGenerator.git
git@gitee.com:tim55667757/PriceGenerator.git
tim55667757
PriceGenerator
PriceGenerator
master

搜索帮助