summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
blob: 1b272a5f963436ab9e27e43b4d68116de68a597e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
branches:
  only:
    - master
    - appveyor
    - ci

environment:
  global:
    PATH: C:\msys64\usr\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
  matrix:
    - MSYSTEM: MINGW64
    - MSYSTEM: MINGW32

shallow_clone: true
test: off

install:
  # Support for Ada and Objective-C was removed from MSYS2. GCC won't update if
  # these packages are installed.
  - >-
    C:\msys64\usr\bin\pacman -R --noconfirm --noprogressbar
    mingw-w64-i686-gcc-ada mingw-w64-i686-gcc-objc mingw-w64-x86_64-gcc-ada
    mingw-w64-x86_64-gcc-objc
  # Update core packages
  - C:\msys64\usr\bin\pacman -Syyuu --noconfirm --noprogressbar --ask=20
  # Update non-core packages
  - C:\msys64\usr\bin\pacman -Suu --noconfirm --noprogressbar --ask=20
  # Install required MSYS2 packages
  - C:\msys64\usr\bin\pacman -S --noconfirm --noprogressbar --needed base-devel perl python pkg-config
  # Now MSYS2 is up to date, do the rest of the install from a bash script
  - C:\msys64\usr\bin\bash -lc "cd && exec \"$APPVEYOR_BUILD_FOLDER\"/TOOLS/appveyor-install.sh"
build_script:
  - C:\msys64\usr\bin\bash -lc "cd \"$APPVEYOR_BUILD_FOLDER\" && exec ./TOOLS/appveyor-build.sh"
on_failure:
  - type "%APPVEYOR_BUILD_FOLDER%\build\config.log"

cache:
  - C:\msys64\var\cache\pacman\pkg