aboutsummaryrefslogtreecommitdiffhomepage
path: root/appveyor.yml
diff options
context:
space:
mode:
authorGravatar archshift <gh@archshift.com>2015-03-06 15:54:09 -0800
committerGravatar archshift <gh@archshift.com>2015-03-16 18:09:20 -0700
commit6cc1a0723583817d1c1bad13db5167c07aa84aa2 (patch)
treeb4fd54fd6347e6d114819536bfd7fe8f95c68ecc /appveyor.yml
parentb56829df020a81248dd04688ff2b307f3444a09f (diff)
CI: upload builds to builds.citra-emu.org instead of MEGA
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml39
1 files changed, 24 insertions, 15 deletions
diff --git a/appveyor.yml b/appveyor.yml
index c9edb9e1..ae22101e 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -6,10 +6,8 @@ clone_depth: 5
environment:
QTDIR: C:\Qt\5.4\msvc2013_64_opengl
- MEGA_EMAIL:
- secure: rEo9CGAYX87GKTqZCZ9vLCNCNqxO5JLgbERaHF3YJWg=
- MEGA_PASSWORD:
- secure: zE1zmgjS/6GfN/19ROl/O0fVR58svORQ5gdtsxI7J8k=
+ BUILD_PASSWORD:
+ secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA=
platform:
- x64
@@ -27,11 +25,6 @@ before_build:
- cd ..
after_build:
- # upload the build to Mega
- - cinst wget -x86
- - wget -q http://megatools.megous.com/builds/megatools-1.9.94-win64.zip
- # extract megatools silently. See http://stackoverflow.com/a/11629736/1748450
- - 7z x megatools-1.9.94-win64.zip | FIND /V "ing "
# copy the qt dlls
- copy C:\Qt\5.4\msvc2013_64_opengl\bin\icudt53.dll build\bin\release
- copy C:\Qt\5.4\msvc2013_64_opengl\bin\icuin53.dll build\bin\release
@@ -42,9 +35,25 @@ after_build:
- copy C:\Qt\5.4\msvc2013_64_opengl\bin\Qt5Widgets.dll build\bin\release
- mkdir build\bin\release\platforms\
- copy C:\Qt\5.4\msvc2013_64_opengl\plugins\platforms\qwindows.dll build\bin\release\platforms
- # zip up the build folder -> build.7z
- - 7z a build .\build\bin\release\*
- # rename, upload to Mega
- - npm install sanitize-filename
- - cd megatools-1.9.94-win64
- - node ..\upload_to_mega.js
+
+ - ps: >
+ if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
+ {
+ $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
+ $GITREV = git show -s --format='%h'
+ $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z"
+ # zip up the build folder
+ 7z a $BUILD_NAME .\build\bin\release\*
+
+ # download winscp
+ Invoke-WebRequest "http://hivelocity.dl.sourceforge.net/project/winscp/WinSCP/5.7/winscp570.zip" -OutFile "winscp570.zip"
+ 7z e -y winscp570.zip
+
+ # upload to server
+ .\WinSCP.com /command `
+ "option batch abort" `
+ "option confirm off" `
+ "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" `
+ "put $BUILD_NAME /citra/nightly/windows-amd64/" `
+ "exit"
+ }