appveyor.yml 2.23 KB
Newer Older
1 2
environment:
  matrix:
3 4 5 6
    - MSYSTEM: MINGW64
      MSYS_ARCH: "x86_64"
      ARCH: "64bit"

Philipp Hörist's avatar
Philipp Hörist committed
7
    - MSYSTEM: MINGW32
8 9
      MSYS_ARCH: "i686"
      ARCH: "32bit"
10

11 12 13 14 15
branches:
  only:
    - master

clone_depth: 1
16

17 18
# init:
#   - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
Philipp Hörist's avatar
Philipp Hörist committed
19

Philipp Hörist's avatar
Philipp Hörist committed
20 21 22 23 24 25 26 27 28 29 30 31
install:
  - set PATH=C:\msys64\usr\bin;%PATH%
  # Download new keyring until appveyor updates its installation
  - bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
  - bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
  - bash -lc "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
  - bash -lc "pacman -U msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz --noconfirm"
  - bash -lc "pacman --needed --noconfirm -Syu"
  # This is needed because without killing all processes -Su will fail
  - ps: Get-Process | Where-Object {$_.path -like 'C:\msys64*'} | Stop-Process
  - bash -lc "pacman --needed --noconfirm -Su"

Philipp Hörist's avatar
Philipp Hörist committed
32
build_script:
Philipp Hörist's avatar
Philipp Hörist committed
33

34
  - ps: |
Philipp Hörist's avatar
Philipp Hörist committed
35 36 37 38 39 40 41 42
        $env:TIME_STRING=(get-date -UFormat "%Y-%m-%d").ToString()
        $env:BUILDROOT="C:\msys64\home\appveyor\gajim\win\_build_root"

        function bash($command) {
          Write-Host $command -NoNewline
          C:\msys64\usr\bin\sh.exe --login -c $command
        }

43 44 45 46
        bash "git clone C:/projects/gajim C:/msys64/home/appveyor/gajim"
        bash "C:/msys64/home/appveyor/gajim/win/build.sh $($env:MSYS_ARCH)"
        Push-AppveyorArtifact "$($env:BUILDROOT)/Gajim.exe" -FileName "Gajim-Master-$($env:ARCH)-$($env:TIME_STRING).exe"
        Push-AppveyorArtifact "$($env:BUILDROOT)/Gajim-Portable.exe" -FileName "Gajim-Portable-Master-$($env:ARCH)-$($env:TIME_STRING).exe"
47

48 49
# on_finish:
#   - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
Philipp Hörist's avatar
Philipp Hörist committed
50
 
51 52 53 54 55 56 57 58 59 60 61
deploy:
    # FTP deployment provider settings
  - provider: FTP
    protocol: ftp
    host: panoramix.gajim.org
    username:
      secure: SNcOJDhUtBjfddbKXudE2w==
    password:
      secure: tQkYbcUb6nChCp0cdqo4CA==
    folder: win_snap
    debug: true