2016-08-07 16:13:58 +02:00
|
|
|
environment:
|
|
|
|
|
|
|
|
matrix:
|
2017-05-10 17:16:14 +02:00
|
|
|
- MSYS: "C:\\msys64\\mingw32.exe"
|
2016-08-07 16:13:58 +02:00
|
|
|
|
2016-12-06 12:50:00 +01:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
clone_depth: 1
|
2016-08-07 16:13:58 +02:00
|
|
|
|
2017-05-10 17:16:14 +02:00
|
|
|
# init:
|
|
|
|
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
2016-12-28 18:06:39 +01:00
|
|
|
|
2017-05-10 17:16:14 +02:00
|
|
|
install:
|
2016-08-07 16:13:58 +02:00
|
|
|
|
2017-05-10 17:16:14 +02:00
|
|
|
- ps: |
|
|
|
|
function bash($command) {
|
|
|
|
Write-Host $command -NoNewline
|
|
|
|
cmd /c start /wait C:\msys64\usr\bin\sh.exe --login -c $command
|
|
|
|
Write-Host " - OK" -ForegroundColor Green
|
|
|
|
}
|
2016-12-28 18:06:39 +01:00
|
|
|
|
2017-05-10 17:16:14 +02:00
|
|
|
bash 'pacman -Sy --noconfirm git'
|
2017-09-19 15:59:40 +02:00
|
|
|
bash 'git clone C:/projects/gajim C:/msys64/home/appveyor/gajim'
|
|
|
|
|
2017-05-10 17:16:14 +02:00
|
|
|
- cmd: '%MSYS% C:/msys64/home/appveyor/gajim/win/build.sh'
|
|
|
|
# Ugly workaround, because i found no way to tell when mingw32.exe returns
|
|
|
|
- cmd: timeout 900
|
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()
|
2017-05-10 17:16:14 +02:00
|
|
|
- ps: $env:BUILDROOT="C:\msys64\home\appveyor\gajim\win\_build_root"
|
|
|
|
- ps: Push-AppveyorArtifact "$($env:BUILDROOT)/Gajim.exe" -FileName "Gajim-Master-$($env:TIME_STRING).exe"
|
|
|
|
- ps: Push-AppveyorArtifact "$($env:BUILDROOT)/Gajim-Portable.exe" -FileName "Gajim-Portable-Master-$($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
|
|
|
|
2017-05-10 17:16:14 +02:00
|
|
|
# on_finish:
|
|
|
|
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
|
|
|
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
|