Skip to content

Commit

Permalink
Merge pull request Azure#1027 from Visual-Studio-China/master
Browse files Browse the repository at this point in the history
add appveyor.yml for doc CI
  • Loading branch information
jianghaolu authored Aug 18, 2016
2 parents ae8793e + 3ad7118 commit da82c36
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -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):[email protected]`n"
- git config --global user.email "[email protected]"
- 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'))

0 comments on commit da82c36

Please sign in to comment.