Edgewall Software

Changes between Version 5 and Version 6 of AppVeyor


Ignore:
Timestamp:
Jan 20, 2016, 8:10:54 PM (8 years ago)
Author:
Christian Boos
Comment:

add a few more tips and caveats for running the contrib/appveyor.ps1 script locally

Legend:

Unmodified
Added
Removed
Modified
  • AppVeyor

    v5 v6  
    3636See all [kwquery:appveyor related tickets].
    3737
    38 Note that if you are on Windows, you can reproduce the build locally the same way AppVeyor would do it, from a !PowerShell console.
     38If you are on Windows, you can reproduce the build locally the same way AppVeyor would do it, from a !PowerShell console.
    3939
    40 Note that you may need to first enable sourcing local scripts, in that shell:
     40Note that you may need to perform a few preparation steps first in that shell:
     41 - enable sourcing local scripts by setting the execution policy to "unrestricted",
     42 - make a **backup** of your Makefile.cfg if you have it customized (as it will be created by the scripts)
     43 - make sure you have GNU `make.exe` in the Path (grab [http://sourceforge.net/projects/ezwinports/ ezmake] for example)
     44 - set the environment variables that are normally set up by the "build matrix" in the configuration file, i.e.
     45    - `PYTHONHOME`, to point to the Python version you want to use
     46    - `TEST_TRAC_DB_URI`, as usual (see TracDev/UnitTests)
     47    - `SVN_BRANCH`, to indicate the "base" branch (e.g. if you forked a topic branch from [source:cboos.git@1.0-stable 1.0-stable], set it to `1.0-stable`)
    4148
     49For example:
    4250{{{#!ps1
    4351> cd 1.0-stable
     52> cp Makefile.cfg Makefile.cfg.custom # if needed...
    4453> Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
    4554> . .\contrib\appveyor.ps1
     55> $env:PATH = "$($env:PATH);C:/Dev/ez-make-4.1/bin" # example
    4656> $env:PYTHONHOME = 'C:\Python27'          # example
    4757> $env:TEST_TRAC_DB_URI = 'sqlite:test.py' # example
    48 > $env:APPVEYOR_REPO_BRANCH = '1.0-stable'
     58> $env:SVN_BRANCH = '1.0-stable'
    4959> $DebugPreference = "Continue"            # to see the Appveyor API calls
    5060> Trac-Install