forked from GNOME/meld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (44 loc) · 1.66 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: tag-or-branch-set-from-init-script.{build}
# Limit builds to release branches
branches:
only:
- master
- meld-3-18
# Only build tags automatically
skip_non_tags: true
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"
}
environment:
PYTHON_PREFIX: C:\Python34
PATH: $(PYTHON_PREFIX);$(PYTHON_PREFIX)\Lib\site-packages\gnome;$(PATH)
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"
build_script:
- cmd: |
%PYTHON_PREFIX%\Lib\site-packages\gnome\glib-compile-schemas data
%PYTHON_PREFIX%\python setup_win32.py bdist_msi
artifacts:
- path: dist/*.msi
name: Meld installer