Skip to content

Install module before running build step #4927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
clone_folder: c:\ps
branches:
only:
- master
Expand All @@ -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):[email protected]`n"
Expand All @@ -25,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"