### ----------------------------------------------------
### -- Bailador
### -- Licenses: MIT
### -- Authors: Tadeusz “tadzik” Sośnierz, Anthony Parsons, Carl Masak, Gabor Szabo, GlitchMr, Moritz Lenz, Panu Ervamaa, Paul Cochrane, Solomon Foster, Sterling Hanenkamp, Tobias Leich, ugexe, vendethiel, Martin Barth (ufobat), Emeric Fischer, Julien Simonet (jsimonet)
### -- File: appveyor.yml
### ----------------------------------------------------
os: Visual Studio 2015

platform: x64

build: off

install:
  - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64'
  - choco install strawberryperl
  - SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
  - git clone https://github.com/tadzik/rakudobrew %USERPROFILE%\rakudobrew
  - SET PATH=%USERPROFILE%\rakudobrew\bin;%PATH%
  - rakudobrew build moar 2018.01
  - rakudobrew build zef
  - cd %APPVEYOR_BUILD_FOLDER%
  - zef install Test::META
  - zef --force install Path::Finder
# https://github.com/labster/p6-file-directory-tree/issues/12
  - zef --force install File::Directory::Tree
  - zef --force install Log::Any
  - zef --force install HTTP::Server::Ogre
  - zef --force install TAP::Harness
  - zef --force install HTTP::Request::Supply
  - SET PATH=C:\Users\appveyor\rakudobrew\moar-2018.01\install\share\perl6\site\bin;%PATH%
  - SET AUTHOR_TESTING=1
  - zef --verbose --depsonly install .

test_script:
  #- prove -v -e "perl6 -Ilib" t/
  #- prove6 -l --loose -v xt
  - prove6 -l --loose -v t

shallow_clone: true


