Skip to content

Instantly share code, notes, and snippets.

@H-G-Hristov
Forked from Zingam/GunBox-appveyor.yml
Created March 14, 2019 15:35
Show Gist options
  • Select an option

  • Save H-G-Hristov/0cdd69c780f72db424a763d7f37310ce to your computer and use it in GitHub Desktop.

Select an option

Save H-G-Hristov/0cdd69c780f72db424a763d7f37310ce to your computer and use it in GitHub Desktop.

Revisions

  1. @Zingam Zingam revised this gist Mar 14, 2019. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -29,12 +29,15 @@ cache:
    # Scripts that are called at very beginning, before repo cloning
    init:
    - ps: |
    $env:AppveyorModulesPath="$env:APPVEYOR_BUILD_FOLDER/../PS_Modules/"
    mkdir -p $env:AppveyorModulesPath
    ################################################
    # Helper functions
    ################################################
    # Write out a Script Module to a file
    Set-Content -Path "$env:APPVEYOR_BUILD_FOLDER/$AppveyorCI_Functions.psm1" -Value `
    Set-Content -Path "$env:AppveyorModulesPath/$AppveyorCI_Functions.psm1" -Value `
    @'
    function Get-CannonicalPath
    {
    @@ -147,7 +150,7 @@ init:
    # Include common functions
    ################################################
    Import-Module "$env:APPVEYOR_BUILD_FOLDER/$AppveyorCI_Functions.psm1"
    Import-Module "$env:AppveyorModulesPath/$AppveyorCI_Functions.psm1"
    ################################################
    # Set environment variables
    @@ -228,7 +231,7 @@ install:
    # Include common functions
    ################################################
    Import-Module "$env:APPVEYOR_BUILD_FOLDER/$AppveyorCI_Functions.psm1"
    Import-Module "$env:AppveyorModulesPath/$AppveyorCI_Functions.psm1"
    Write-EnvVariables
    @@ -297,7 +300,7 @@ build_script:
    # Include common functions
    ################################################
    Import-Module "$env:APPVEYOR_BUILD_FOLDER/$AppveyorCI_Functions.psm1"
    Import-Module "$env:AppveyorModulesPath/$AppveyorCI_Functions.psm1"
    Write-EnvVariables
  2. @Zingam Zingam revised this gist Mar 14, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -147,7 +147,7 @@ init:
    # Include common functions
    ################################################
    Import-Module "../$AppveyorCI_Functions.psm1"
    Import-Module "$env:APPVEYOR_BUILD_FOLDER/$AppveyorCI_Functions.psm1"
    ################################################
    # Set environment variables
  3. @Zingam Zingam revised this gist Mar 14, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ init:
    ################################################
    # Write out a Script Module to a file
    Set-Content -Path "../$AppveyorCI_Functions.psm1" -Value `
    Set-Content -Path "$env:APPVEYOR_BUILD_FOLDER/$AppveyorCI_Functions.psm1" -Value `
    @'
    function Get-CannonicalPath
    {
    @@ -228,7 +228,7 @@ install:
    # Include common functions
    ################################################
    Import-Module "../$AppveyorCI_Functions.psm1"
    Import-Module "$env:APPVEYOR_BUILD_FOLDER/$AppveyorCI_Functions.psm1"
    Write-EnvVariables
    @@ -297,7 +297,7 @@ build_script:
    # Include common functions
    ################################################
    Import-Module "../$AppveyorCI_Functions.psm1"
    Import-Module "$env:APPVEYOR_BUILD_FOLDER/$AppveyorCI_Functions.psm1"
    Write-EnvVariables
  4. @Zingam Zingam revised this gist Mar 14, 2019. 1 changed file with 16 additions and 14 deletions.
    30 changes: 16 additions & 14 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -234,6 +234,7 @@ install:
    ################################################
    # Install packages
    if ("Windows" -eq $env:TargetPlatform)
    {
    if ("Ninja" -eq $env:Generator)
    @@ -265,20 +266,7 @@ install:
    ninja --version
    }
    # Custom build scripts that run instead of automatic MSBuild
    build_script:
    - ps: |
    ################################################
    # Include common functions
    ################################################
    Import-Module "../$AppveyorCI_Functions.psm1"
    Write-EnvVariables
    ################################################
    # Install packages
    # Install vcpkg packages
    if (-not (Test-Path $env:vcpkgCachePath))
    {
    Write-Host "Cloning vcpkg..."
    @@ -302,6 +290,19 @@ build_script:
    ./vcpkg install --recurse --triplet $env:vcpkgTriplet freetype sdl2
    }
    # Custom build scripts that run instead of automatic MSBuild
    build_script:
    - ps: |
    ################################################
    # Include common functions
    ################################################
    Import-Module "../$AppveyorCI_Functions.psm1"
    Write-EnvVariables
    ################################################
    # Setup build environment
    if (("Windows" -eq $env:TargetPlatform) `
    -and ("Ninja" -eq $env:Generator))
    @@ -336,6 +337,7 @@ build_script:
    '"../../GunBox"'
    )
    $cmakeArgumentList = [System.Environment]::ExpandEnvironmentVariables($cmakeArguments)
    Write-Host "`$cmakeArgumentList -> $cmakeArgumentList"
    Write-Host "`nCMake configuration started...`n"
  5. @Zingam Zingam revised this gist Mar 14, 2019. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -249,7 +249,11 @@ install:
    # "apt" options: -y - "yes", -q - "quiet"
    sudo apt-get -yq update | Out-Null
    sudo apt-get install ninja-build | Out-Null
    # Applications
    sudo apt-get -yq install ninja-build | Out-Null
    # Libraries
    sudo apt-get -yq install libgl1-mesa-dev | Out-Null
    }
    else
    {
  6. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ configuration:

    environment:
    RemoteSessionOnExit_Enabled:
    true
    false
    CoverityScan_Enabled:
    false
    CoverityScanToken:
  7. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ environment:
    RemoteSessionOnExit_Enabled:
    true
    CoverityScan_Enabled:
    true
    false
    CoverityScanToken:
    secure: R5iKcUqFlDHXEM5mD8NMvlRqKF2yIEQH+0ZvrsLBrOE=
    CoverityScanEmail:
    @@ -342,7 +342,8 @@ build_script:
    # Run Coverity Scan on forced builds (via the "New Build" option)
    if (($true -eq $env:CoverityScan_Enabled) `
    -and ($true -eq $env:APPVEYOR_FORCED_BUILD))
    -and ($true -eq $env:APPVEYOR_FORCED_BUILD) `
    -and ($true -eq $isWindows))
    {
    cov-build --dir cov-int/ cmake --build .
    @@ -389,8 +390,8 @@ build_script:
    on_finish:
    # Uncomment to enable a Remote Desktop session
    - ps: |
    if ($env:RemoteSessionOnExit_Enabled `
    -and $isWindows)
    if (($true -eq $env:RemoteSessionOnExit_Enabled) `
    -and ($true -eq $isWindows))
    {
    $blockRdp = $true;
    iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
  8. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -389,7 +389,8 @@ build_script:
    on_finish:
    # Uncomment to enable a Remote Desktop session
    - ps: |
    if ($env:RemoteSessionOnExit_Enabled -and $isWindows)
    if ($env:RemoteSessionOnExit_Enabled `
    -and $isWindows)
    {
    $blockRdp = $true;
    iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
  9. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -389,8 +389,7 @@ build_script:
    on_finish:
    # Uncomment to enable a Remote Desktop session
    - ps: |
    if (($env:RemoteSessionOnExit_Enabled) `
    -and ($isWindows))
    if ($env:RemoteSessionOnExit_Enabled -and $isWindows)
    {
    $blockRdp = $true;
    iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
  10. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -389,7 +389,8 @@ build_script:
    on_finish:
    # Uncomment to enable a Remote Desktop session
    - ps: |
    if ($env:RemoteSessionOnExit_Enabled)
    if (($env:RemoteSessionOnExit_Enabled) `
    -and ($isWindows))
    {
    $blockRdp = $true;
    iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
  11. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ version: 1.0.0.{build}

    image:
    - Ubuntu
    - Visual Studio 2017
    # - Visual Studio 2017

    platform: x64

  12. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 15 additions and 7 deletions.
    22 changes: 15 additions & 7 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ version: 1.0.0.{build}

    image:
    - Ubuntu
    # - Visual Studio 2017
    - Visual Studio 2017

    platform: x64

    @@ -12,6 +12,8 @@ configuration:
    # - Release

    environment:
    RemoteSessionOnExit_Enabled:
    true
    CoverityScan_Enabled:
    true
    CoverityScanToken:
    @@ -293,7 +295,7 @@ build_script:
    return Stop-AppveyorBuild "Unknown target platform: $env:TargetPlatform"
    }
    vcpkg install --recurse --triplet $env:vcpkgTriplet freetype sdl2
    ./vcpkg install --recurse --triplet $env:vcpkgTriplet freetype sdl2
    }
    # Setup build environment
    @@ -386,10 +388,16 @@ build_script:
    # Scripts that run after build success/failure
    on_finish:
    # Uncomment to enable a Remote Desktop session
    #- ps: |
    # $blockRdp = $true;
    # iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
    - ps: |
    if ($env:RemoteSessionOnExit_Enabled)
    {
    $blockRdp = $true;
    iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
    }
    # Uncomment to enable SSH connection
    - sh: |
    export APPVEYOR_SSH_BLOCK=true
    curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
    if [ ${RemoteSessionOnExit_Enabled} ]
    then
    export APPVEYOR_SSH_BLOCK=true
    curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
    fi
  13. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -204,7 +204,10 @@ init:
    $env:vcpkgCachePath = Get-CannonicalPath -FullPathName $vcpkgCachePath
    # Date & Version variables
    #Set-TimeZone -Name "FLE Standard Time"
    if ($isWindows)
    {
    Set-TimeZone -Name "FLE Standard Time"
    }
    # Get a sortable timestamp:
    # https://docs.microsoft.com/en-us/dotnet/api/system.globalization.datetimeformatinfo?view=netframework-4.7.2
    $timestamp = Get-Date -format s | foreach {$_ -replace ":", "-"}
    @@ -272,10 +275,10 @@ build_script:
    # Install packages
    if (-not (Test-Path $env:vcpkgCachePath))
    {
    Write-Host "Cloning `"vcpkg`"..."
    Write-Host "Cloning vcpkg..."
    git clone -q https://github.com/Microsoft/vcpkg.git
    Write-Host "Rebuilding `"vcpkg`"..."
    Write-Host "Rebuilding vcpkg..."
    cd $env:VCPKG_ROOT
    if ("Windows" -eq $env:TargetPlatform)
    {
  14. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 4 additions and 6 deletions.
    10 changes: 4 additions & 6 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -276,9 +276,7 @@ build_script:
    git clone -q https://github.com/Microsoft/vcpkg.git
    Write-Host "Rebuilding `"vcpkg`"..."
    Write-Host "env:VCPKG_ROOT $env:VCPKG_ROOT"
    cd $env:VCPKG_ROOT
    if ("Windows" -eq $env:TargetPlatform)
    {
    ./bootstrap-vcpkg.bat
    @@ -293,8 +291,6 @@ build_script:
    }
    vcpkg install --recurse --triplet $env:vcpkgTriplet freetype sdl2
    cd $env:APPVEYOR_BUILD_FOLDER
    }
    # Setup build environment
    @@ -318,9 +314,10 @@ build_script:
    mkdir -p $env:BuildPath
    mkdir -p $env:InstallPath
    # Configure CMake project
    cd $env:BuildPath
    # Set CMake arguments
    # Setup CMake arguments
    $cmakeArguments = @(
    '-G"%Generator%"',
    '-D"CMAKE_BUILD_TYPE:STRING=%CONFIGURATION%"',
    @@ -331,10 +328,11 @@ build_script:
    )
    $cmakeArgumentList = [System.Environment]::ExpandEnvironmentVariables($cmakeArguments)
    # Configure CMake project
    Write-Host "`nCMake configuration started...`n"
    cmake --version
    Invoke-Executable -FilePath "cmake" -ArgumentList $cmakeArgumentList
    Write-Host "`nCMake configuration completed...`n"
    # Run Coverity Scan on forced builds (via the "New Build" option)
  15. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -195,7 +195,7 @@ init:
    $installPath = "$env:APPVEYOR_BUILD_FOLDER/__install-output/$env:vcpkgTriplet-$env:CONFIGURATION"
    $vcpkgRoot = "$env:APPVEYOR_BUILD_FOLDER/vcpkg"
    $vcpkgRoot = [System.Environment]::ExpandEnvironmentVariables($vcpkgRoot)
    $vcpkgCachePath = "$env:vcpkgRoot/installed"
    $vcpkgCachePath = "$vcpkgRoot/installed"
    $env:ArchivePath = Get-CannonicalPath -FullPathName $archivePath
    $env:BuildPath = Get-CannonicalPath -FullPathName $buildPath
  16. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -125,6 +125,7 @@ init:
    Write-Host " `$env:ArchivePath = $env:ArchivePath"
    Write-Host " `$env:BuildPath = $env:BuildPath"
    Write-Host " `$env:InstallPath = $env:InstallPath"
    Write-Host " `$env:VCPKG_ROOT = $env:VCPKG_ROOT"
    Write-Host " `$env:vcpkgCachePath = $env:vcpkgCachePath"
    Write-Host " - Date & Version variables"
    Write-Host " `$env:BuildVersion = $env:BuildVersion"
  17. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -12,8 +12,6 @@ configuration:
    # - Release

    environment:
    VCPKG_ROOT:
    "%APPVEYOR_BUILD_FOLDER%/vcpkg"
    CoverityScan_Enabled:
    true
    CoverityScanToken:
    @@ -194,12 +192,14 @@ init:
    $archivePath = "$env:APPVEYOR_BUILD_FOLDER/__archive-output/$env:vcpkgTriplet-$env:CONFIGURATION"
    $buildPath = "$env:APPVEYOR_BUILD_FOLDER/__build-output/$env:vcpkgTriplet-$env:CONFIGURATION"
    $installPath = "$env:APPVEYOR_BUILD_FOLDER/__install-output/$env:vcpkgTriplet-$env:CONFIGURATION"
    $vcpkgCachePath = "$env:VCPKG_ROOT/installed"
    $vcpkgCachePath = [System.Environment]::ExpandEnvironmentVariables($vcpkgCachePath)
    $vcpkgRoot = "$env:APPVEYOR_BUILD_FOLDER/vcpkg"
    $vcpkgRoot = [System.Environment]::ExpandEnvironmentVariables($vcpkgRoot)
    $vcpkgCachePath = "$env:vcpkgRoot/installed"
    $env:ArchivePath = Get-CannonicalPath -FullPathName $archivePath
    $env:BuildPath = Get-CannonicalPath -FullPathName $buildPath
    $env:InstallPath = Get-CannonicalPath -FullPathName $installPath
    $env:VCPKG_ROOT = Get-CannonicalPath -FullPathName $vcpkgRoot
    $env:vcpkgCachePath = Get-CannonicalPath -FullPathName $vcpkgCachePath
    # Date & Version variables
  18. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -275,6 +275,7 @@ build_script:
    git clone -q https://github.com/Microsoft/vcpkg.git
    Write-Host "Rebuilding `"vcpkg`"..."
    Write-Host "env:VCPKG_ROOT $env:VCPKG_ROOT"
    cd $env:VCPKG_ROOT
    if ("Windows" -eq $env:TargetPlatform)
  19. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -224,6 +224,8 @@ install:
    Import-Module "../$AppveyorCI_Functions.psm1"
    Write-EnvVariables
    ################################################
    if ("Windows" -eq $env:TargetPlatform)
    @@ -269,11 +271,12 @@ build_script:
    # Install packages
    if (-not (Test-Path $env:vcpkgCachePath))
    {
    Write-Host "Cloning `vcpkg`..."
    Write-Host "Cloning `"vcpkg`"..."
    git clone -q https://github.com/Microsoft/vcpkg.git
    Write-Host "Rebuilding `vcpkg`..."
    Write-Host "Rebuilding `"vcpkg`"..."
    cd $env:VCPKG_ROOT
    if ("Windows" -eq $env:TargetPlatform)
    {
    ./bootstrap-vcpkg.bat
  20. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@
    version: 1.0.0.{build}

    image:
    # - Ubuntu
    - Visual Studio 2017
    - Ubuntu
    # - Visual Studio 2017

    platform: x64

  21. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@
    version: 1.0.0.{build}

    image:
    - Ubuntu
    # - Visual Studio 2017
    # - Ubuntu
    - Visual Studio 2017

    platform: x64

  22. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -309,9 +309,9 @@ build_script:
    }
    # Create output paths
    mkdir $env:ArchivePath
    mkdir $env:BuildPath
    mkdir $env:InstallPath
    mkdir -p $env:ArchivePath
    mkdir -p $env:BuildPath
    mkdir -p $env:InstallPath
    cd $env:BuildPath
  23. @Zingam Zingam revised this gist Mar 13, 2019. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -380,4 +380,10 @@ build_script:
    # Scripts that run after build success/failure
    on_finish:
    # Uncomment to enable a Remote Desktop session
    #- pwsh: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
    #- ps: |
    # $blockRdp = $true;
    # iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
    # Uncomment to enable SSH connection
    - sh: |
    export APPVEYOR_SSH_BLOCK=true
    curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
  24. @Zingam Zingam revised this gist Mar 12, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -241,7 +241,7 @@ install:
    # "apt" options: -y - "yes", -q - "quiet"
    sudo apt-get -yq update | Out-Null
    sudo apt-get install ninja | Out-Null
    sudo apt-get install ninja-build | Out-Null
    }
    else
    {
    @@ -250,7 +250,7 @@ install:
    if ("Ninja" -eq $env:Generator)
    {
    sudo ninja --version
    ninja --version
    }
    # Custom build scripts that run instead of automatic MSBuild
  25. @Zingam Zingam revised this gist Mar 12, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -250,7 +250,7 @@ install:
    if ("Ninja" -eq $env:Generator)
    {
    ninja --version
    sudo ninja --version
    }
    # Custom build scripts that run instead of automatic MSBuild
  26. @Zingam Zingam revised this gist Mar 12, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -262,6 +262,8 @@ build_script:
    Import-Module "../$AppveyorCI_Functions.psm1"
    Write-EnvVariables
    ################################################
    # Install packages
  27. @Zingam Zingam revised this gist Mar 12, 2019. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -232,8 +232,6 @@ install:
    {
    $env:PIP_DISABLE_PIP_VERSION_CHECK = 1
    pip install ninja
    ninja --version
    }
    }
    elseif ("Linux" -eq $env:TargetPlatform)
    @@ -250,6 +248,11 @@ install:
    return Stop-AppveyorBuild "Unknown target platform: $env:TargetPlatform"
    }
    if ("Ninja" -eq $env:Generator)
    {
    ninja --version
    }
    # Custom build scripts that run instead of automatic MSBuild
    build_script:
    - ps: |
  28. @Zingam Zingam revised this gist Mar 12, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -239,7 +239,7 @@ install:
    elseif ("Linux" -eq $env:TargetPlatform)
    {
    # Set non-interactive frontend for "debconf" to prevent errors in the script
    $env:DEBIAN_FRONTEND = noninteractive
    $env:DEBIAN_FRONTEND = "noninteractive"
    # "apt" options: -y - "yes", -q - "quiet"
    sudo apt-get -yq update | Out-Null
  29. @Zingam Zingam revised this gist Mar 12, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -264,18 +264,18 @@ build_script:
    # Install packages
    if (-not (Test-Path $env:vcpkgCachePath))
    {
    # Update vcpkg
    Write-Host "Cloning `vcpkg`..."
    git clone -q https://github.com/Microsoft/vcpkg.git
    # Uncomment to rebuild vcpkg
    Write-Host "Rebuilding `vcpkg`..."
    cd $env:VCPKG_ROOT
    if ("Windows" -eq $env:TargetPlatform)
    {
    ./bootstrap-vcpkg.bat
    }
    elseif ("Linux" -eq $env:TargetPlatform)
    {
    ./bootstrap-vcpkg.sh
    . ./bootstrap-vcpkg.sh
    }
    else
    {
  30. @Zingam Zingam revised this gist Mar 12, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions appveyor.yml
    Original file line number Diff line number Diff line change
    @@ -195,6 +195,7 @@ init:
    $buildPath = "$env:APPVEYOR_BUILD_FOLDER/__build-output/$env:vcpkgTriplet-$env:CONFIGURATION"
    $installPath = "$env:APPVEYOR_BUILD_FOLDER/__install-output/$env:vcpkgTriplet-$env:CONFIGURATION"
    $vcpkgCachePath = "$env:VCPKG_ROOT/installed"
    $vcpkgCachePath = [System.Environment]::ExpandEnvironmentVariables($vcpkgCachePath)
    $env:ArchivePath = Get-CannonicalPath -FullPathName $archivePath
    $env:BuildPath = Get-CannonicalPath -FullPathName $buildPath