2016-11-30 20:54:06 +00:00
|
|
|
version: OpenLP-win-ci-b{build}
|
2016-11-29 13:07:21 +00:00
|
|
|
|
|
|
|
init:
|
|
|
|
- choco install -y --force bzr
|
|
|
|
- set PATH=C:\Program Files (x86)\Bazaar;%PATH%
|
|
|
|
- bzr --version
|
|
|
|
|
|
|
|
clone_script:
|
2016-11-30 20:54:06 +00:00
|
|
|
- bzr checkout --lightweight BRANCHNAME openlp-branch
|
2016-11-29 13:07:21 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
PYTHON: C:\\Python34
|
|
|
|
|
|
|
|
install:
|
|
|
|
# Install dependencies from pypi
|
2016-11-30 20:54:06 +00:00
|
|
|
- "%PYTHON%\\python.exe -m pip install sqlalchemy alembic chardet beautifulsoup4 Mako nose mock pyodbc psycopg2 pypiwin32 pyenchant"
|
2016-11-29 13:07:21 +00:00
|
|
|
# Install mysql dependency
|
2016-11-29 20:37:39 +00:00
|
|
|
- "%PYTHON%\\python.exe -m pip install http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip#md5=3df394d89300db95163f17c843ef49df"
|
2016-11-29 13:07:21 +00:00
|
|
|
# Download and install lxml and pyicu (originally from http://www.lfd.uci.edu/~gohlke/pythonlibs/)
|
2016-11-30 20:54:06 +00:00
|
|
|
- "%PYTHON%\\python.exe -m pip install https://get.openlp.org/win-sdk/lxml-3.6.4-cp34-cp34m-win32.whl"
|
|
|
|
- "%PYTHON%\\python.exe -m pip install https://get.openlp.org/win-sdk/PyICU-1.9.5-cp34-cp34m-win32.whl"
|
2016-11-29 13:07:21 +00:00
|
|
|
# Download and install PyQt5
|
|
|
|
- curl -L -O http://downloads.sourceforge.net/project/pyqt/PyQt5/PyQt-5.5.1/PyQt5-5.5.1-gpl-Py3.4-Qt5.5.1-x32.exe
|
|
|
|
- PyQt5-5.5.1-gpl-Py3.4-Qt5.5.1-x32.exe /S
|
|
|
|
# Download and unpack mupdf
|
|
|
|
- curl -O http://mupdf.com/downloads/archive/mupdf-1.9a-windows.zip
|
|
|
|
- 7z x mupdf-1.9a-windows.zip
|
2016-11-30 20:54:06 +00:00
|
|
|
- cp mupdf-1.9a-windows/mupdf.exe openlp-branch/mupdf.exe
|
2016-11-29 13:07:21 +00:00
|
|
|
# Download and unpack mediainfo
|
|
|
|
- curl -O https://mediaarea.net/download/binary/mediainfo/0.7.90/MediaInfo_CLI_0.7.90_Windows_i386.zip
|
|
|
|
- mkdir MediaInfo
|
2016-11-29 20:37:39 +00:00
|
|
|
- 7z x -oMediaInfo MediaInfo_CLI_0.7.90_Windows_i386.zip
|
2016-11-30 20:54:06 +00:00
|
|
|
- cp MediaInfo\\MediaInfo.exe openlp-branch\\MediaInfo.exe
|
2016-11-29 13:07:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
build: off
|
|
|
|
|
|
|
|
test_script:
|
2016-11-30 20:54:06 +00:00
|
|
|
- cd openlp-branch
|
2016-11-29 20:37:39 +00:00
|
|
|
- "%PYTHON%\\python.exe -m nose -v tests"
|
2016-11-30 20:54:06 +00:00
|
|
|
# Go back to the user root folder
|
|
|
|
- cd..
|
2016-11-29 13:07:21 +00:00
|
|
|
|
|
|
|
after_test:
|
|
|
|
# This is where we create a package using PyInstaller
|
2016-11-29 20:37:39 +00:00
|
|
|
# First get PyInstaller
|
2016-11-30 20:54:06 +00:00
|
|
|
- curl -L -O https://github.com/pyinstaller/pyinstaller/archive/develop.zip
|
2016-11-29 13:07:21 +00:00
|
|
|
- 7z x develop.zip
|
2016-11-30 20:54:06 +00:00
|
|
|
# Install PyInstaller dependencies
|
|
|
|
- "%PYTHON%\\python.exe -m pip install future"
|
|
|
|
# Download and install Inno Setup - used for packaging
|
|
|
|
- curl -L -O http://www.jrsoftware.org/download.php/is-unicode.exe
|
|
|
|
- is-unicode.exe /VERYSILENT /SUPPRESSMSGBOXES /SP-
|
|
|
|
# Download and unpack portable-bundle
|
|
|
|
- curl -O https://get.openlp.org/win-sdk/portable-setup.7z
|
|
|
|
- 7z x portable-setup.7z
|
|
|
|
# Disabled portable installers - can't figure out how to make them silent
|
|
|
|
# - curl -L -O http://downloads.sourceforge.net/project/portableapps/PortableApps.com%20Installer/PortableApps.comInstaller_3.4.4.paf.exe
|
|
|
|
# - PortableApps.comInstaller_3.4.4.paf.exe /S
|
|
|
|
# - curl -L -O http://downloads.sourceforge.net/project/portableapps/PortableApps.com%20Launcher/PortableApps.comLauncher_2.2.1.paf.exe
|
|
|
|
# - PortableApps.comLauncher_2.2.1.paf.exe /S
|
|
|
|
# - curl -L -O http://downloads.sourceforge.net/project/portableapps/NSIS%20Portable/NSISPortable_3.0_English.paf.exe
|
|
|
|
# - NSISPortable_3.0_English.paf.exe /S
|
|
|
|
# Get the packaging code
|
2016-12-01 08:10:51 +00:00
|
|
|
- bzr checkout --lightweight lp:openlp/packaging packaging
|
2016-11-29 20:37:39 +00:00
|
|
|
# Build the bundle
|
2016-11-30 20:54:06 +00:00
|
|
|
- cd packaging
|
|
|
|
- "%PYTHON%\\python.exe windows/windows-builder.py -v -u -t -c windows/config-appveyor.ini -b ../openlp-branch"
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: openlp-branch\dist\*.exe
|