appveyor.yml 2.11 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

install:
14
  - git clone --depth=1 --branch=gtk3 https://dev.gajim.org/gajim/gajim-plugins.git c:\projects\gajim-plugins
15 16 17 18 19

  # Download & Install Dependencys
  - ps: c:\\projects\\gajim\\dependencys.ps1

  - set PATH=C:\\MinGW\\bin;%PATH%
20
  - "%PYTHON%\\python.exe -m pip install --upgrade pip"
21 22
  - "%PYTHON%\\python.exe -m pip install -r c:\\projects\\gajim\\requirements.txt"

23
  - ps: Add-Content C:\Python34\Lib\site-packages\google\__init__.py " "
24 25
  - "%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"
26 27
  
  # Prepare Build Dir
28
  - cd c:\\projects\\gajim\\
29
  - xcopy . ..\gajim_built /e /i
30 31 32
  - cd ..\gajim_built

  # Copy Shipped Plugins
33
  - xcopy ..\gajim-plugins\plugin_installer plugins\plugin_installer /e /i
34

35
  # Compile Translation Strings
36
  - cmd: for %%l in (po\*.po) do mkdir po\%%~nl & mkdir po\%%~nl\LC_MESSAGES & msgfmt -o po\%%~nl\LC_MESSAGES\gajim.mo %%l
37

38
  # Make Gajim.exe
39
  - "%PYTHON%\\python.exe setup_win32.py build_exe"
40

41 42 43
  - move build\exe.win32-3.4 .
  - rmdir build
  - rename exe.win32-3.4 build
44

45
  # Make Installer
46
  - ps: '& "C:\Program Files (x86)\NSIS\makensis.exe" gajim.nsi'
47
  - ps: '& "C:\Program Files (x86)\NSIS\makensis.exe" gajim-portable.nsi'
48 49

  # Push Installer Exe
50
  - ps: $env:TIME_STRING=(get-date -UFormat "%Y-%m-%d").ToString()
51
  - ps: Push-AppveyorArtifact Gajim.exe -FileName "Gajim-default-$($env:TIME_STRING).exe"
52
  - ps: Push-AppveyorArtifact Gajim-Portable.exe -FileName "Gajim-portable-default-$($env:TIME_STRING).exe"
53

54
build: off
55

56 57 58 59 60 61 62 63 64 65 66 67 68
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