代码拉取完成,页面将自动刷新
language: python
python:
- "2.7"
- "3.7"
os:
- linux
# - osx
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then export PYINSTALLER='pyinstaller==3.6';else export PYINSTALLER=pyinstaller;fi
# command to install dependencies
install:
- pip install ${PYINSTALLER}
# command to run tests
script:
- sed -i -e "s/\${BUILD_SOURCEBRANCHNAME}/${TRAVIS_BRANCH}/" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py
- cp /etc/ssl/certs/ca-certificates.crt cert.pem
- export SSL_CERT_FILE=${PWD}/cert.pem
- pyinstaller --onefile --noconfirm --clean ./.build/ddns.spec
- ./dist/ddns || test -e "config.json"
- ./dist/ddns -h
git:
depth: 2
deploy:
- provider: releases
token: "${GH_TOKEN}"
skip_cleanup: true
cleanup: false
file:
- "dist/ddns"
on:
tags: true
branch: master
python: '3.7'
- provider: pypi
username: newfuture-bot
password: "${PYPI_PWD}"
skip_cleanup: true
cleanup: false
distributions: "sdist bdist_wheel" # Your distributions here
on:
tags: true
branch: master
python: '3.7'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。