appveyor.yml 1.7 KB
Newer Older
1 2 3
environment:

  matrix:
4
    - MSYS: "C:\\msys64\\mingw32.exe"
5

6 7 8 9 10
branches:
  only:
    - master

clone_depth: 1
11

12 13
# init:
#   - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
14

15
install:
16

17 18 19 20 21 22
  - 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
      }
23

24 25
      bash 'pacman -Sy --noconfirm git'
      bash 'git clone https://dev.gajim.org/lovetox/gajim.git'
26

27 28 29
  - 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
30 31

  # Push Installer Exe
32
  - ps: $env:TIME_STRING=(get-date -UFormat "%Y-%m-%d").ToString()
33 34 35
  - 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"
36

37
build: off
38

39 40 41
# on_finish:
#   - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

42 43 44 45 46 47 48 49 50 51 52 53 54
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