appveyor.yml 1.73 KB
Newer Older
1 2
version: tag-or-branch-set-from-init-script.{build}

3 4 5 6 7 8 9
# Limit builds to release branches
branches:
  only:
    - master
    - meld-3-18

# Only build tags automatically
10 11
# TODO: Disabled due to https://github.com/appveyor/ci/issues/1887
# skip_non_tags: true
12

13 14 15 16 17 18 19 20
init:
  - ps: |
      if ($env:APPVEYOR_REPO_TAG -eq "true") {
          Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME.$env:APPVEYOR_BUILD_NUMBER"
      }
      else {
          Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_BRANCH-$($env:APPVEYOR_REPO_COMMIT.substring(0,7)).$env:APPVEYOR_BUILD_NUMBER"
      }
21 22 23 24 25

environment:
  PYTHON_PREFIX: C:\Python34
  PATH: $(PYTHON_PREFIX);$(PYTHON_PREFIX)\Lib\site-packages\gnome;$(PATH)

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
install:
  # Install cxFreeze
  - cmd: |
      python -m pip install pypiwin32==219
      python -m pip install cx_Freeze==5.0.2

  # Download and extract the PyGI all-in-one installer
  - cmd: |
      curl "https://sourceforge.net/projects/pygobjectwin32/files/pygi-aio-3.24.1_rev1-setup_049a323fe25432b10f7e9f543b74598d4be74a39.exe/download" --location --output pygi-aio-setup.exe
      set SOURCEPATH=%cd%\pygi-aio-source
      mkdir %SOURCEPATH%
      7z.exe x -o%SOURCEPATH% pygi-aio-setup.exe
      mkdir pygi-aio-setup
      7z.exe x -opygi-aio-setup %SOURCEPATH%\setup.exe
      set GIR=True

  # %PYTHON_PREFIX% is used because it is the last supported by
  # pygi-aio, GTK is installed as a dependency of GTKSourceView
  - cmd: |
      pygi-aio-setup\rcmd.exe /c "cd pygi-aio-setup && setup.bat %PYTHON_PREFIX% GTKSourceView >pygi-aio-setup.log"
46 47

build_script:
48 49 50
  - cmd: |
      %PYTHON_PREFIX%\Lib\site-packages\gnome\glib-compile-schemas data
      %PYTHON_PREFIX%\python setup_win32.py bdist_msi
51 52

artifacts:
53 54
  - path: dist/*.msi
    name: Meld installer