forked from mozilla/mozregression
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
43 lines (41 loc) · 1.64 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
build: false
environment:
NSIS_ROOT: C:\nsis
matrix:
- PYTHON: "C:/Python27"
init:
- "ECHO %PYTHON%"
install:
- ps: (new-object net.webclient).DownloadFile('https://raw.github.com/pypa/pip/master/contrib/get-pip.py', 'C:/get-pip.py')
- "%PYTHON%/python.exe C:/get-pip.py"
# install PyQt4
- ps: (new-object net.webclient).DownloadFile("http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt4-4.11.3-gpl-Py2.7-Qt4.8.6-x32.exe", "C:\install-PyQt4.exe")
- ps: Start-Process -FilePath C:\install-PyQt4.exe -ArgumentList "/S" -Wait -Passthru
# install mozregression code and test dependencies
- "cd gui & %PYTHON%/Scripts/pip.exe install -r test-requirements.txt"
- "cd .."
test_script:
- "%PYTHON%/python.exe setup.py test"
- "cd gui"
- "%PYTHON%/python.exe build.py test"
- "cd .."
# bundle the application
- appveyor DownloadFile "http://sunet.dl.sourceforge.net/project/nsis/NSIS 2/2.46/nsis-2.46-setup.exe" -FileName nsissetup.exe
- nsissetup /S /D=%NSIS_ROOT%
- "%PYTHON%/Scripts/pip.exe install cx_Freeze"
- "cd gui"
- "%PYTHON%/python.exe %PYTHON%/Scripts/cxfreeze --icon=wininst/app_icon.ico --base-name=Win32GUI --include-path=.;..;%PYTHON%/Lib/site-packages;%PYTHON%/Lib --target-name=mozregression-gui.exe --target-dir=dist mozregui/main.py"
- "cd wininst"
- "%NSIS_ROOT%/makensis wininst.nsi"
- "cd .."
- "cd .."
# section required for deploy
artifacts:
- path: gui\wininst\mozregression-gui.exe
deploy:
- provider: GitHub
auth_token:
secure: 9JS0n1MfG2KVQ86suWQ7Zq51932EBanPp05GXoLfN+94AhMOQSerjUwGIxoBXKmp
artifact: gui\wininst\mozregression-gui.exe
on:
appveyor_repo_tag: true