diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000000000..b84c7e32e30a1 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,22 @@ +environment: + access_token: + secure: JWSy9tPo2eoTYpPQplvokf4IiVk6onNBbWwAs6nNWWyQ2JaO+MRAg/QzbJnTjpUm + +before_build: + - cd .. + - git config --global credential.helper store + - ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" + - git config --global user.email "vscopbld@microsoft.com" + - git config --global user.name "OpenPublishBuild" + - git clone "https://github.com/Azure/azure-docs-sdk-java.git" "docs" + +build_script: + - ps: docs\Scripts\build.ps1 + +on_success: + - cd docs + - git add . + - git diff --quiet --exit-code --cached || git commit -m "CI Updates" || git push -u origin master +#on_finish: +# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) +