ci(tavis): date time

This commit is contained in:
New
2019-05-02 14:16:26 +08:00
parent e0b18e0bbd
commit a093cdb785
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ install:
# command to run tests
script:
- sed -i -e "s/\${BUILD_SOURCEBRANCHNAME}/${TRAVIS_BRANCH}/" -e "s/\${BUILD_DATE}/$(date)/" run.py
- sed -i -e "s/\${BUILD_SOURCEBRANCHNAME}/${TRAVIS_BRANCH}/" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py
- pyinstaller --onefile --noconfirm --clean ./.build/ddns.spec
- ./dist/ddns || test -e "config.json"
+4 -4
View File
@@ -19,11 +19,11 @@ from util import ip
from util.cache import Cache
__version__ = "${BUILD_SOURCEBRANCHNAME}@${BUILD_DATE}" # CI 时会被Tag替换
__description__ = "自动更新DNS记录指向本地IP [automatically update DNS records to dynamic local IP]"
__description__ = "automatically update DNS records to dynamic local IP [自动更新DNS记录指向本地IP]"
__doc__ = """
ddns[%s]
(i) 文档主页[homepage or docs]: https://ddns.newfuture.cc/
(?) 问题和帮助[issues or bugs]: https://github.com/NewFuture/DDNS/issues
(i) homepage or docs [文档主页]: https://ddns.newfuture.cc/
(?) issues or bugs [问题和帮助]: https://github.com/NewFuture/DDNS/issues
Copyright (c) New Future (MIT License)
""" % (__version__)
@@ -140,7 +140,7 @@ def main():
epilog=__doc__, formatter_class=RawTextHelpFormatter)
parser.add_argument('--version', action='version', version=__version__)
parser.add_argument(
'-c', '--config', default="config.json", help="配置文件路径[config file]")
'-c', '--config', default="config.json", help="config file [配置文件路径]")
get_config(path=parser.parse_args().config)
# Dynamicly import the dns module as configuration
dns_provider = str(get_config('dns', 'dnspod').lower())