Commit c876b966 authored by mercury233's avatar mercury233

update appveyor

parent d39c126b
...@@ -15,27 +15,20 @@ install: ...@@ -15,27 +15,20 @@ install:
build_script: build_script:
- FOR /R dumps %%f in (*.cdb) DO sqlite3.exe %%f .dump > %%f.sql - FOR /R dumps %%f in (*.cdb) DO sqlite3.exe %%f .dump > %%f.sql
for: after_build:
- - ps: |
branches: if(-not $env:appveyor_pull_request_number) {
only: $env:GIT_REDIRECT_STDERR = '2>&1'
- master git fetch --depth 1 origin dump:dump
git checkout dump
after_build: Copy-Item -Path .\dumps\* -Destination .\locales\ -Recurse -Force
- ps: | git config --global user.email $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL
if(-not $env:appveyor_pull_request_number) { git config --global user.name $env:APPVEYOR_REPO_COMMIT_AUTHOR
$env:GIT_REDIRECT_STDERR = '2>&1' try { git commit -a -m $env:APPVEYOR_REPO_COMMIT_MESSAGE } catch { Write-Output "Nothing Changed" }
git fetch --depth 1 origin dump:dump git config --global credential.helper store
git checkout dump Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
Copy-Item -Path .\dumps\* -Destination .\locales\ -Recurse -Force git push origin dump
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: cache:
- sqlite-tools-win-x64-3450300.zip - 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