~alisonken1/openlp/pjlink2-resource-data

« back to all changes in this revision

Viewing changes to scripts/appveyor.yml

  • Committer: Tim Bentley
  • Author(s): Tomas Groth
  • Date: 2017-05-05 16:27:20 UTC
  • mfrom: (2727.1.6 appveyor-update)
  • Revision ID: tim.bentley@gmail.com-20170505162720-1tvw6h5hev5m4mlk
Integrate the Jenkins setup with the AppVeyor setup, so that Jenkins fails if AppVeyor fails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
install:
14
14
  # Install dependencies from pypi
15
 
  - "%PYTHON%\\python.exe -m pip install sqlalchemy alembic chardet beautifulsoup4 Mako nose mock pyodbc psycopg2 pypiwin32 pyenchant"
 
15
  - "%PYTHON%\\python.exe -m pip install sqlalchemy alembic chardet beautifulsoup4 Mako nose mock pyodbc==4.0.8 psycopg2 pypiwin32 pyenchant"
16
16
  # Install mysql dependency
17
17
  - "%PYTHON%\\python.exe -m pip install http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip#md5=3df394d89300db95163f17c843ef49df"
18
18
  # Download and install lxml and pyicu (originally from http://www.lfd.uci.edu/~gohlke/pythonlibs/)
19
19
  - "%PYTHON%\\python.exe -m pip install https://get.openlp.org/win-sdk/lxml-3.6.4-cp34-cp34m-win32.whl"
20
20
  - "%PYTHON%\\python.exe -m pip install https://get.openlp.org/win-sdk/PyICU-1.9.5-cp34-cp34m-win32.whl"
21
21
  # Download and install PyQt5
22
 
  - 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
 
22
  - appveyor DownloadFile http://downloads.sourceforge.net/project/pyqt/PyQt5/PyQt-5.5.1/PyQt5-5.5.1-gpl-Py3.4-Qt5.5.1-x32.exe
23
23
  - PyQt5-5.5.1-gpl-Py3.4-Qt5.5.1-x32.exe /S
24
24
  # Download and unpack mupdf
25
 
  - curl -O http://mupdf.com/downloads/archive/mupdf-1.9a-windows.zip
 
25
  - appveyor DownloadFile http://mupdf.com/downloads/archive/mupdf-1.9a-windows.zip
26
26
  - 7z x mupdf-1.9a-windows.zip
27
27
  - cp mupdf-1.9a-windows/mupdf.exe openlp-branch/mupdf.exe
28
28
  # Download and unpack mediainfo
29
 
  - curl -O https://mediaarea.net/download/binary/mediainfo/0.7.90/MediaInfo_CLI_0.7.90_Windows_i386.zip
 
29
  - appveyor DownloadFile https://mediaarea.net/download/binary/mediainfo/0.7.90/MediaInfo_CLI_0.7.90_Windows_i386.zip
30
30
  - mkdir MediaInfo
31
31
  - 7z x -oMediaInfo MediaInfo_CLI_0.7.90_Windows_i386.zip
32
32
  - cp MediaInfo\\MediaInfo.exe openlp-branch\\MediaInfo.exe
43
43
after_test:
44
44
  # This is where we create a package using PyInstaller
45
45
  # First get PyInstaller
46
 
  - curl -L -O https://github.com/pyinstaller/pyinstaller/releases/download/v3.2/PyInstaller-3.2.zip
 
46
  - appveyor DownloadFile  https://github.com/pyinstaller/pyinstaller/releases/download/v3.2/PyInstaller-3.2.zip
47
47
  - 7z x PyInstaller-3.2.zip
48
48
  # Install PyInstaller dependencies
49
49
  - "%PYTHON%\\python.exe -m pip install future pefile"
50
50
  # Download and install Inno Setup - used for packaging
51
 
  - curl -L -O http://www.jrsoftware.org/download.php/is-unicode.exe
 
51
  - appveyor DownloadFile http://www.jrsoftware.org/download.php/is-unicode.exe
52
52
  - is-unicode.exe /VERYSILENT /SUPPRESSMSGBOXES /SP-
53
53
  # Download and unpack portable-bundle
54
 
  - curl -O https://get.openlp.org/win-sdk/portable-setup.7z
 
54
  - appveyor DownloadFile https://get.openlp.org/win-sdk/portable-setup.7z
55
55
  - 7z x portable-setup.7z
56
56
  # Disabled portable installers - can't figure out how to make them silent
57
57
  # - curl -L -O http://downloads.sourceforge.net/project/portableapps/PortableApps.com%20Installer/PortableApps.comInstaller_3.4.4.paf.exe
61
61
  # - curl -L -O http://downloads.sourceforge.net/project/portableapps/NSIS%20Portable/NSISPortable_3.0_English.paf.exe
62
62
  # - NSISPortable_3.0_English.paf.exe /S
63
63
  # Get the packaging code
64
 
  - curl -L http://bazaar.launchpad.net/~openlp-core/openlp/packaging/tarball -o packaging.tar.gz
 
64
  - appveyor DownloadFile http://bazaar.launchpad.net/~openlp-core/openlp/packaging/tarball -FileName packaging.tar.gz
65
65
  - 7z e packaging.tar.gz
66
66
  - 7z x packaging.tar
67
67
  - mv ~openlp-core/openlp/packaging packaging
74
74
        7z x documentation.tar
75
75
        mv ~openlp-core/openlp/documentation documentation
76
76
        cd packaging
77
 
        &"$env:PYTHON\python.exe" builders/windows-builder.py --skip-update --skip-translations -c windows/config-appveyor.ini -b ../openlp-branch -d ../documentation --portable
 
77
        &"$env:PYTHON\python.exe" builders/windows-builder.py --skip-update -c windows/config-appveyor.ini -b ../openlp-branch -d ../documentation --portable
78
78
      } else {
79
79
        cd packaging
80
80
        &"$env:PYTHON\python.exe" builders/windows-builder.py --skip-update --skip-translations -c windows/config-appveyor.ini -b ../openlp-branch --portable