Skip to content
Snippets Groups Projects
Select Git revision
  • 4f3d1c43cafc47cc66d746e1cdf2a336d9e42d6f
  • master default
  • dependabot/nuget/source/Sample/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/MasterDevs.ChromeDevTools.Tests/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ProtocolGenerator/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/System.Net.Http-4.3.4
  • revert-29-revert-24-protocol_62
  • revert-24-protocol_62
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0.40915
13 results

appveyor.yml

Blame
  • user avatar
    Kevin Prudente authored and GitHub committed
    Disabling symbol uploads while their site has SSL cert issues
    4f3d1c43
    History
    appveyor.yml 2.96 KiB
    # Great reference:  http://www.appveyor.com/docs/appveyor-yml
    
    version: 1.0.{build}
    skip_tags: false
    configuration: Release
    init:
    - ps: >-
        $parsedReleaseBuildVersion = $env:APPVEYOR_REPO_TAG_NAME -Match "(\d+.\d+.\d+(.\d+)?)"
        
        If($env:appveyor_repo_tag -AND $parsedReleaseBuildVersion) {
          $env:BuildVersion = $matches[0]
          $env:IsGithubRelease = $TRUE
        }
        else {
          $env:BuildVersion = $env:appveyor_build_version
          $env:IsGithubRelease = ""
        }
        
        Write-Host "Build Version: " $env:BuildVersion
        
        Write-Host "appveyor_build_version Variable: " $env:appveyor_build_version
        
    install:
    - ps: >-
        try
        {
            if($env:IsGithubRelease)
            {
                $origin = git config --get remote.origin.url
                if ($origin -like "https://github.com/*.git")
                {
                    $startToTrim = "https://github.com/"
                    $endToTrim = ".git"
    
                    $releaseUrl = $origin.Substring($startToTrim.Length, $origin.Length - $startToTrim.Length - $endToTrim.Length)
                    
                    $releaseUrl = "https://api.github.com/repos/" + $releaseUrl + "/releases/tags/" + $env:APPVEYOR_REPO_TAG_NAME
    
                    $resp = invoke-webrequest $releaseUrl
                    $release = $resp.Content | ConvertFrom-Json
    
                    $nuspecPath = (Get-ChildItem -Filter *.nuspec -Recurse )[0].FullName
                    [xml]$nuspec = Get-Content $nuspecPath
    
                    $nuspec.package.metadata.releaseNotes = $release.Body
                    $nuspec.Save( $nuspecPath )
                }
            }
        }
        catch 
        {
            Write-Host $_.Exception.GetType().FullName, $_.Exception.Message
        }
    assembly_info:
      patch: true
      file: '**\AssemblyInfo.*'
      assembly_version: $(BuildVersion)
      assembly_file_version: $(BuildVersion)
      assembly_informational_version: $(BuildVersion)
    nuget:
      account_feed: true
      project_feed: true
    before_build:
    - cmd: choco install wget
    - wget -q https://download.microsoft.com/download/8/F/9/8F9659B9-E628-4D1A-B6BF-C3004C8C954B/dotnet-1.1.1-sdk-win-x64.exe
    - dotnet-1.1.1-sdk-win-x64.exe /install /quiet /log dotnetinstall.log
    - ps: Push-AppveyorArtifact "dotnetinstall.log"
    - nuget restore source\MasterDevs.ChromeDevTools.sln
    - dotnet restore source\ChromeDevTools\MasterDevs.ChromeDevTools.Core.csproj
    - dotnet pack source\ChromeDevTools\MasterDevs.ChromeDevTools.Core.csproj --version-suffix r%APPVEYOR_BUILD_NUMBER%