### ----------------------------------------------------
### -- Numeric::Pack
### -- Licenses: Artistic-2.0
### -- Authors: Sam Gillespie
### -- File: appveyor.yml
### ----------------------------------------------------
os: Visual Studio 2015

platform: x64

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
  - rakudobrew build zef
  # - rakudobrew build panda
  - cd %APPVEYOR_BUILD_FOLDER%
  # - panda --notests installdeps .
  # - perl6 -MPanda::Builder -e 'Panda::Builder.build(~$*CWD)'
  - zef --verbose --depsonly install .
  # while we are using a native build of Rakudo we'll need to go around the build system a bit
  - perl6 Build.p6
  # FIX fo perl6 not being found
  - perl6 -e "spurt 'Makefile', slurp('Makefile').subst(/perl6/, 'perl', :g)"
  - nmake

build: false

test_script:
  - prove -v -e "perl6 -Ilib" t/

shallow_clone: true


