Upload wheels directly to server (#5175)

* add server key for appveyor

* Add rsync wheel uploading

* Path fix

* Correct env var

* Convert path

* Fix path

* Split options

* Try list folders

* Bad quotes

* TOP SECRET

* Update appveyor.yml

* Update appveyor.yml

* Update appveyor.yml

* Update

* Fix option

* mkdir beforehand

* Update kivy-upload.sh

* Update appveyor.yml

* Update kivy-upload.sh

* Abs path

* Update kivy-upload.sh

* Stop dry run

* do_wheels false by default
This commit is contained in:
Peter Badida 2017-05-13 22:52:55 +02:00 committed by GitHub
parent 242beb39a5
commit 484b2f788a
3 changed files with 17 additions and 11 deletions

View File

@ -3,17 +3,15 @@ os: Visual Studio 2015
environment: environment:
WHEEL_DIR: C:\kivy_wheels WHEEL_DIR: C:\kivy_wheels
KIVY_BUILD_DIR: C:\kivy_build KIVY_BUILD_DIR: C:\kivy_build
AIRPLANE_CHARGE: DO_WHEEL: False
secure: HgQr7XMKpB6lWn33SKv0GyYZbh1RfpgvaIKEE0B54R5XHJujQg5dhOEB3Vc2CfAqCprX+CGxXAjQwFnuv6pJeA3++9Z8/1SfFuEqCF59J7PqsDs2thA8lNHLRsThvRVJrBt2jcb1wrG3Nf3sz3vi7e+rBzYjprkcYiTP0XJ5FdQekyFTTjuXYaRBGWrwGX81dEVVUkGFuEZFYWJq2Yf/PkFGOX+IN0CjgpFB0pGfZSJcIG7mvscurfG/KvckLhNUINprUKt0pJ8iCN0iufsbmrOnuG+WC8AHktvlSxzHSfCm8zmhSZTkDNkJfpYHapFagQQThmiYq8PqsVIC0XOz+j4KLljc6bxyhE0oPtOPg4DohBdqLI28V1XB/Kqh7CCZR50wAw567voWVOtKsyets5oeywZH1q/gtK6stC5t7v+a2s0w1I2IEW6p2aPy7plreZj15QCgIR8h6JgIuMuwqiaVCUuhej/GauCZG/9jIBJpTf1NkBa9k4vIxHPq5R5/ltYX8za49vz5ImdLe1qlTFwy9fegMpb+D5m3y3ilm+t5xkDmqXQau1oVWIVd8jf0DawWqkNsKLp6hbYr51gclS+Gc7NVKwvF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TOOLS: 1
KIVY_SPLIT_EXAMPLES: 1 KIVY_SPLIT_EXAMPLES: 1
MSYSTEM: MINGW64
CHERE_INVOKING: 1
matrix: matrix:
- PYVER: 27 - PYVER: 27
BITTNESS: 86 BITTNESS: 86
@ -42,6 +40,7 @@ environment:
install: install:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-desktop.ps1')) - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-desktop.ps1'))
build_script: build_script:
- nuget install secure-file -ExcludeVersion
- ps: >- - ps: >-
function Check-Error function Check-Error
@ -52,7 +51,6 @@ build_script:
} }
} }
echo "Bitness=$env:BITTNESS, scheduled=$env:APPVEYOR_SCHEDULED_BUILD, forced=$env:APPVEYOR_FORCED_BUILD, rebuild=$env:APPVEYOR_RE_BUILD, tagged=$env:APPVEYOR_REPO_TAG" echo "Bitness=$env:BITTNESS, scheduled=$env:APPVEYOR_SCHEDULED_BUILD, forced=$env:APPVEYOR_FORCED_BUILD, rebuild=$env:APPVEYOR_RE_BUILD, tagged=$env:APPVEYOR_REPO_TAG"
@ -123,7 +121,7 @@ build_script:
} }
$DO_WHEEL = "True" $DO_WHEEL = $env:DO_WHEEL
# Set new wheel name, keep default if release (tag) # Set new wheel name, keep default if release (tag)
# release: Kivy-X.Y.Z-cpAB-cpABm-ARCH.whl (Kivy_examples-X.Y.Z-py2.py3-none-any.whl) # release: Kivy-X.Y.Z-cpAB-cpABm-ARCH.whl (Kivy_examples-X.Y.Z-py2.py3-none-any.whl)
@ -196,11 +194,12 @@ build_script:
Check-Error Check-Error
} }
C:\Python27\python.exe C:\projects\kivy-sdk-packager\win\gdrive.py upload "$env:GDRIVE_KIVY_UPLOAD_ID" "$env:WHEEL_DIR\*" secure-file\tools\secure-file -decrypt C:\projects\kivy\kivy\tools\appveyor\id_rsa.enc -secret "$env:KEY_WITH_NO_TEETH"
Check-Error Check-Error
C:\Python27\python.exe C:\projects\kivy-sdk-packager\win\gdrive.py delete_older "$env:GDRIVE_KIVY_UPLOAD_ID" "15" C:\msys64\usr\bin\bash --login C:\projects\kivy\kivy\tools\appveyor\kivy-upload.sh
Check-Error Check-Error
} }
test_script: test_script:
- ps: >- - ps: >-

Binary file not shown.

View File

@ -0,0 +1,7 @@
pacman -S --noconfirm git rsync
if [ ! -d "/home/appveyor/.ssh" ]; then
mkdir "/home/appveyor/.ssh"
fi
echo -e "Host 159.203.106.198\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
cp $(cygpath -u "C:\projects\kivy\kivy\tools\appveyor\id_rsa") ~/.ssh/id_rsa
rsync -avh -e "ssh -p 2458" "/c/kivy_wheels/" root@159.203.106.198:/web/downloads/appveyor/kivy