Edgewall Software

Changes between Version 1 and Version 2 of AppVeyor


Ignore:
Timestamp:
Jan 14, 2016, 8:13:23 PM (8 years ago)
Author:
Christian Boos
Comment:

explain how to use the contrib/appveyor.ps1 script locally

Legend:

Unmodified
Added
Removed
Modified
  • AppVeyor

    v1 v2  
    99
    1010We'll also have an [source:trunk/.appveyor.yml .appveyor.yml] file, similar to our [source:trunk/.travis.yml .travis.yml] file.
     11As the scripting part is not completely trivial, we use a companion !PowerShell script [source:trunk/contrib/appveyor.ps1 contrib/appveyor.ps1] which contains some common utilities and settings and one function for each step that can be called from the build configuration.
    1112
    1213Currently experimenting in: https://ci.appveyor.com/project/cboos/trac
     
    1819There are still a number of test issues only seen on !AppVeyor that need to be resolved before getting a "green" build, mostly SQLite related.
    1920
    20 All [kwquery:appveyor] related tickets.
     21See all [kwquery:appveyor] related tickets.
     22
     23Note that if you're on Windows, you can reproduce the build locally the same way AppVeyor would do it, from a PowerShell console.
     24
     25Note that you may need to first enable sourcing local scripts, in that shell.
     26
     27{{{#!ps1
     28> cd 1.0-stable
     29> Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
     30> . .\contrib\appveyor.ps1
     31> $env:PYTHONHOME = 'C:\Python27'          # example
     32> $env:TEST_TRAC_DB_URI = 'sqlite:test.py' # example
     33> $env:APPVEYOR_REPO_BRANCH = '1.0-stable'
     34> $DebugPreference = "Continue" # in order to see the Appveyor API calls
     35> Trac-Install
     36> Trac-Build
     37> Trac-Tests
     38}}}
     39
    2140
    2241=== Project not building