2016-08-07 16:13:58 +02:00
|
|
|
environment:
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
|
|
|
|
- PYTHON: "C:\\Python34"
|
|
|
|
|
2016-12-06 12:50:00 +01:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
clone_depth: 1
|
2016-08-07 16:13:58 +02:00
|
|
|
|
|
|
|
install:
|
2016-12-06 12:50:00 +01:00
|
|
|
- git clone --depth=1 --branch=gtk3 https://dev.gajim.org/gajim/gajim-plugins.git c:\projects\gajim-plugins
|
2016-12-28 18:06:39 +01:00
|
|
|
|
|
|
|
# Download & Install Dependencys
|
|
|
|
- ps: c:\\projects\\gajim\\dependencys.ps1
|
|
|
|
|
|
|
|
- set PATH=C:\\MinGW\\bin;%PATH%
|
2016-08-07 16:13:58 +02:00
|
|
|
- "%PYTHON%\\python.exe -m pip install --upgrade pip"
|
2016-12-28 18:06:39 +01:00
|
|
|
- "%PYTHON%\\python.exe -m pip install -r c:\\projects\\gajim\\requirements.txt"
|
|
|
|
|
2016-08-07 16:13:58 +02:00
|
|
|
- ps: Add-Content C:\Python34\Lib\site-packages\google\__init__.py " "
|
2016-12-06 12:50:00 +01:00
|
|
|
- "%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"
|
2016-12-28 18:06:39 +01:00
|
|
|
|
|
|
|
# Prepare Build Dir
|
2016-08-07 16:13:58 +02:00
|
|
|
- cd c:\\projects\\gajim\\
|
2016-12-06 12:50:00 +01:00
|
|
|
- xcopy . ..\gajim_built /e /i
|
2016-12-28 18:06:39 +01:00
|
|
|
- cd ..\gajim_built
|
|
|
|
|
|
|
|
# Copy Shipped Plugins
|
2016-12-06 12:50:00 +01:00
|
|
|
- xcopy ..\gajim-plugins\plugin_installer plugins\plugin_installer /e /i
|
2016-08-07 16:13:58 +02:00
|
|
|
|
2016-12-28 18:06:39 +01:00
|
|
|
# Compile Translation Strings
|
2016-12-06 12:50:00 +01:00
|
|
|
- cmd: for %%l in (po\*.po) do mkdir po\%%~nl & mkdir po\%%~nl\LC_MESSAGES & msgfmt -o po\%%~nl\LC_MESSAGES\gajim.mo %%l
|
2016-08-07 16:13:58 +02:00
|
|
|
|
2016-12-28 18:06:39 +01:00
|
|
|
# Make Gajim.exe
|
2016-12-06 12:50:00 +01:00
|
|
|
- "%PYTHON%\\python.exe setup_win32.py build_exe"
|
2016-12-28 18:06:39 +01:00
|
|
|
|
2016-12-06 12:50:00 +01:00
|
|
|
- move build\exe.win32-3.4 .
|
|
|
|
- rmdir build
|
|
|
|
- rename exe.win32-3.4 build
|
2016-08-07 16:13:58 +02:00
|
|
|
|
2016-12-28 18:06:39 +01:00
|
|
|
# Make Installer
|
2016-12-06 12:50:00 +01:00
|
|
|
- ps: '& "C:\Program Files (x86)\NSIS\makensis.exe" gajim.nsi'
|
2017-01-08 19:48:06 +01:00
|
|
|
- ps: '& "C:\Program Files (x86)\NSIS\makensis.exe" gajim-portable.nsi'
|
2016-12-28 18:06:39 +01:00
|
|
|
|
|
|
|
# Push Installer Exe
|
2017-01-04 13:55:09 +01:00
|
|
|
- ps: $env:TIME_STRING=(get-date -UFormat "%Y-%m-%d").ToString()
|
2016-12-28 18:06:39 +01:00
|
|
|
- ps: Push-AppveyorArtifact Gajim.exe -FileName "Gajim-default-$($env:TIME_STRING).exe"
|
2017-01-08 19:48:06 +01:00
|
|
|
- ps: Push-AppveyorArtifact Gajim-Portable.exe -FileName "Gajim-portable-default-$($env:TIME_STRING).exe"
|
2016-08-07 16:13:58 +02:00
|
|
|
|
2016-12-06 12:50:00 +01:00
|
|
|
build: off
|
2016-08-07 16:13:58 +02:00
|
|
|
|
2016-12-09 23:53:28 +01:00
|
|
|
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
|