appveyor.yml 2.18 KB
Newer Older
1
2
3
4
5
6
environment:

  matrix:

    - PYTHON: "C:\\Python34"

7
8
9
10
11
branches:
  only:
    - master

clone_depth: 1
12
13
14

install:

15
16
  - git clone --depth=1 --branch=gtk3 https://dev.gajim.org/gajim/gajim-plugins.git c:\projects\gajim-plugins
  - git clone https://dev.gajim.org/gajim/python-nbxmpp.git c:\projects\python-nbxmpp
17
  - cd c:\\projects\\python-nbxmpp\\
18
  - "%PYTHON%\\python.exe setup.py install"
19
20
21
22
23
  - ps: c:\\projects\\gajim\\download.ps1
  - set PATH=C:\\MinGW\\bin;C:\\Program Files (x86)\\gettext-iconv\\bin;%PATH%
  - "%PYTHON%\\python.exe -m pip install --upgrade pip"
  - "%PYTHON%\\python.exe -m pip install protobuf"
  - ps: Add-Content C:\Python34\Lib\site-packages\google\__init__.py " "
24
  - "%PYTHON%\\python.exe -m pip install pycryptodome"
25
  - "%PYTHON%\\python.exe -m pip install cx_freeze"
26
  - "%PYTHON%\\python.exe -m pip install keyring"
27
28
  - "%PYTHON%\\python.exe -m pip install pypiwin32"
  - "%PYTHON%\\python.exe -m pip install pyopenssl"
29
30
  - "%PYTHON%\\python.exe -m pip install --no-dependencies python-axolotl"
  - "%PYTHON%\\python.exe -m pip install --global-option=build_ext --global-option --compiler=mingw32 python-axolotl-curve25519"
31
  - cd c:\\projects\\gajim\\
32
33
34
35
  - xcopy . ..\gajim_built /e /i
  - cd ..
  - cd gajim_built
  - xcopy ..\gajim-plugins\plugin_installer plugins\plugin_installer /e /i
36

37
  - cmd: for %%l in (po\*.po) do mkdir po\%%~nl & mkdir po\%%~nl\LC_MESSAGES & msgfmt -o po\%%~nl\LC_MESSAGES\gajim.mo %%l
38

39
40
41
42
  - "%PYTHON%\\python.exe setup_win32.py build_exe"
  - move build\exe.win32-3.4 .
  - rmdir build
  - rename exe.win32-3.4 build
43

44
  - ps: '& "C:\Program Files (x86)\NSIS\makensis.exe" gajim.nsi'
45
46
  - ps: $env:TIME_STRING=(get-date).ToString(‘d-M-yyyy’)
  - ps: Push-AppveyorArtifact Gajim.exe -FileName "Gajim-16.10.2-$($env:TIME_STRING).exe"
47

48
build: off
49

50
51
52
53
54
55
56
57
58
59
60
61
62
deploy:
    # FTP deployment provider settings
  - provider: FTP
    protocol: ftp
    host: panoramix.gajim.org
    username:
      secure: SNcOJDhUtBjfddbKXudE2w==
    password:
      secure: tQkYbcUb6nChCp0cdqo4CA==
    folder: win_snap
    active_mode: false
    beta: true      # enable alternative FTP library for 'ftp' and 'ftps' modes
    debug: true