1 Star 1 Fork 1

axfox / DDNS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
New Future 提交于 2021-07-30 12:06 . Update .travis.yml
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'
Python
1
https://gitee.com/axfox/DDNS.git
git@gitee.com:axfox/DDNS.git
axfox
DDNS
DDNS
master

搜索帮助