mirror of
https://github.com/NewFuture/DDNS.git
synced 2022-04-19 20:24:44 +00:00
Merge pull request #201 from xufan6/patch-ubuntu-travis
Patch ubuntu travis
This commit is contained in:
+6
-2
@@ -9,14 +9,18 @@ dist: xenial
|
||||
# - 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
|
||||
- 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"
|
||||
|
||||
@@ -41,4 +45,4 @@ deploy:
|
||||
on:
|
||||
tags: true
|
||||
branch: master
|
||||
python: '3.7'
|
||||
python: '3.7'
|
||||
|
||||
+6
-2
@@ -31,8 +31,10 @@ jobs:
|
||||
matrix:
|
||||
Python27:
|
||||
python.version: '2.7'
|
||||
pyinstaller.version: 'pyinstaller==3.6'
|
||||
Python37:
|
||||
python.version: '3.7'
|
||||
pyinstaller.version: 'pyinstaller'
|
||||
maxParallel: 4
|
||||
|
||||
steps:
|
||||
@@ -44,7 +46,7 @@ jobs:
|
||||
- script: python -m pip install --upgrade pip
|
||||
displayName: 'Install dependencies'
|
||||
|
||||
- script: pip install pyinstaller
|
||||
- script: pip install $(pyinstaller.version)
|
||||
name: 'pyinstaller'
|
||||
|
||||
- bash: sed -i -e "s/\${BUILD_SOURCEBRANCHNAME}/${BUILD_SOURCEBRANCHNAME}/" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py
|
||||
@@ -74,8 +76,10 @@ jobs:
|
||||
matrix:
|
||||
Python27:
|
||||
python.version: '2.7'
|
||||
pyinstaller.version: 'pyinstaller==3.6'
|
||||
Python37:
|
||||
python.version: '3.7'
|
||||
pyinstaller.version: 'pyinstaller'
|
||||
maxParallel: 4
|
||||
|
||||
steps:
|
||||
@@ -87,7 +91,7 @@ jobs:
|
||||
- script: python -m pip install --upgrade pip
|
||||
displayName: 'Install dependencies'
|
||||
|
||||
- script: pip install pyinstaller
|
||||
- script: pip install $(pyinstaller.version)
|
||||
name: 'pyinstaller'
|
||||
|
||||
- bash: sed -i.temp -e "s/\${BUILD_SOURCEBRANCHNAME}/${BUILD_SOURCEBRANCHNAME}/" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py
|
||||
|
||||
Reference in New Issue
Block a user