Commit c876b966 authored by mercury233's avatar mercury233

update appveyor

parent d39c126b
......@@ -15,27 +15,20 @@ install:
build_script:
- FOR /R dumps %%f in (*.cdb) DO sqlite3.exe %%f .dump > %%f.sql
for:
-
branches:
only:
- master
after_build:
- ps: |
if(-not $env:appveyor_pull_request_number) {
$env:GIT_REDIRECT_STDERR = '2>&1'
git fetch --depth 1 origin dump:dump
git checkout dump
Copy-Item -Path .\dumps\* -Destination .\locales\ -Recurse -Force
git config --global user.email $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL
git config --global user.name $env:APPVEYOR_REPO_COMMIT_AUTHOR
try { git commit -a -m $env:APPVEYOR_REPO_COMMIT_MESSAGE } catch { Write-Output "Nothing Changed" }
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
git push origin dump
}
after_build:
- ps: |
if(-not $env:appveyor_pull_request_number) {
$env:GIT_REDIRECT_STDERR = '2>&1'
git fetch --depth 1 origin dump:dump
git checkout dump
Copy-Item -Path .\dumps\* -Destination .\locales\ -Recurse -Force
git config --global user.email $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL
git config --global user.name $env:APPVEYOR_REPO_COMMIT_AUTHOR
try { git commit -a -m $env:APPVEYOR_REPO_COMMIT_MESSAGE } catch { Write-Output "Nothing Changed" }
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
git push origin dump
}
cache:
- sqlite-tools-win-x64-3450300.zip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment