os:
  - linux

env:
  - WINEARCH=win32
  - WINEARCH=""

cache: apt

before_install:
  - "export DISPLAY=:99.0"
  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 800x600x16"

before_script:
  - sudo add-apt-repository -y ppa:pipelight/stable
  - sudo apt-get update -qq
  - sudo apt-get install -y --install-recommends wine-staging wine-staging-compat subversion
  - wget https://github.com/fracting/msys2-scripts-deb/raw/master/msys2-scripts_20150722_i386.deb
  - sudo dpkg -i msys2-scripts_20150722_i386.deb

language: c

compiler:
  - gcc

script:
  - srcdir=~/src
  - pkgname=depot-tools-git
  - pkgbuild_repo=https://github.com/Alexpux/MSYS2-packages/trunk/depot-tools-git
  - svn co ${pkgbuild_repo} ${srcdir}
  - ln -svf ${PWD} ${srcdir}/${pkgname}
  - cp ${srcdir}/PKGBUILD ~
  - msys2-prepare
  - msys2-wrapper "makepkg -s --noconfirm --noprogressbar --noextract --skippgpcheck -f"

Add MSYS2 support in Travis CI.
Add MSYS2 support in Travis CI.
