Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active December 22, 2018 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/893fde0ab1f97f7ee39ff0ee579fd41c to your computer and use it in GitHub Desktop.
Save guitarrapc/893fde0ab1f97f7ee39ff0ee579fd41c to your computer and use it in GitHub Desktop.
image: Ubuntu1804
version: '1.0.{build}'
shallow_clone: false
skip_branch_with_pr: true
branches:
only:
- master
environment:
PS_GELLERY_RELEASE_API:
secure: xBR5JNFYMUisp+oIx08EbfQ5xWsToa0XufJKuyaazeXy9wYcs6Fezw//NtW60uOF
GITHUB_RELEASE_API:
secure: s55znS9PHRv9SOXWiAmrxjj9c166WrBKTFz7cQmA0wLp9tGzREudX8XmaqbQH3YT
GUID: 11da18bb-f0d4-4509-b709-8b17efd8bb17
install:
- pwsh --version
- pwsh -c Install-Module Pester -Scope CurrentUser -Force
build: off
build_script:
- cd $APPVEYOR_BUILD_FOLDER
- pwsh -file ./run_build.ps1 -Version ${APPVEYOR_BUILD_VERSION}
- 7z a ./publish/Utf8BomHeader_${APPVEYOR_BUILD_VERSION}.zip ./publish/Utf8BomHeader/
test_script:
- cd $APPVEYOR_BUILD_FOLDER
- pwsh -c "Invoke-Pester -OutputFormat NUnitXml -OutputFile testresult.xml -CodeCoverage src/Utf8BomHeader.psm1"
- find "$APPVEYOR_BUILD_FOLDER" -type f -name 'testresult.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.appveyor.com/api/testresults/nunit/$APPVEYOR_JOB_ID"
deploy_script:
- pwsh -file ./run_psgallery_deploy.ps1 -NuGetApiKey ${PS_GELLERY_RELEASE_API} -BuildBranch master
artifacts:
- path: ./publish/Utf8BomHeader_${APPVEYOR_BUILD_VERSION}.zip
name: Utf8BomHeader_${APPVEYOR_BUILD_VERSION}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment