From ceae4d1c23df63baabb892a3b22df848d677b42b Mon Sep 17 00:00:00 2001 From: Qinen Zhu Date: Mon, 6 Nov 2017 10:23:24 +0800 Subject: [PATCH 1/2] Install module before running build step --- appveyor.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 93d760d3b95a..2eb501da29c1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,4 @@ +clone_folder: c:\ps branches: only: - master @@ -7,6 +8,11 @@ environment: secure: VMFbecLLHzDq/09YDPbcM0VDDSwwgY57vr5GXK6cZZ4Ti/Xs5RZoylzV8MMr1350 before_build: + - ps: Install-Module -Name SplitPipeline -Force + - ps: Install-Module -Name platyPS -Force + - ps: Install-Module -Name Azure -Force + - ps: Install-Module -Name AzureRM -Force + - ps: Install-Module -Name AzureStack -Force - ps: Install-Product node $env:nodejs_version - git config --global credential.helper store - ps: ac "$env:USERPROFILE\.git-credentials" "https://$($env:github_access_token):x-oauth-basic@github.com`n" From 9fc1771facc83dd274fc3692271ffd212607d38a Mon Sep 17 00:00:00 2001 From: Qinen Zhu Date: Tue, 7 Nov 2017 11:05:58 +0800 Subject: [PATCH 2/2] Update the folder to copy markdown help files --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 2eb501da29c1..5a812aac896c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -31,6 +31,6 @@ test: off on_success: - git clone -q --branch=%target_branch% %content_repo% %TEMP%\Azure - cd %TEMP%\Azure - - ps: ls c:\projects\_output -dir | % { copy $_.FullName (ls -dir | select -First 1) -Recurse -Force } + - ps: ls c:\projects\_output -dir | % { copy $_.FullName . -Recurse -Force } - git add -A - git diff --quiet --exit-code --cached || git commit -m "Sync docs from source code repo to content repo." && git push origin %target_branch% && appveyor AddMessage "Content Updated"