### ----------------------------------------------------
### -- HTTP::Server::Router
### -- Licenses: 
### -- Authors: 
### -- File: .travis.yml
### ----------------------------------------------------
language: perl
perl:
    - '5.20'
env:
    - BACKEND=moar
    - BACKEND=jvm
matrix:
    allow_failures:
        - env: BACKEND=jvm
    fast_finish: true
sudo: false
before_install:
    - git clone https://github.com/rakudo/rakudo.git $HOME/rakudo
    - cd $HOME/rakudo
    - 'if [[ $BACKEND == "moar" ]]; then perl Configure.pl --gen-moar --gen-nqp --backends=$BACKEND; fi'
    - 'if [[ $BACKEND == "jvm" ]]; then perl Configure.pl --gen-nqp --backends=$BACKEND; fi'
    - make install
    - export PATH=$HOME/rakudo/install/bin:$PATH
    - cd $TRAVIS_BUILD_DIR
    # install dependencies the old fashioned way
    - git clone https://github.com/tony-o/perl6-http-server.git TTS1
    - git clone https://github.com/tony-o/perl6-http-server-async.git TTS2
    - cp -r TTS1/lib/* lib/
    - cp -r TTS2/lib/* lib/
install:
    # need at least 1 statement in 'install'
    - perl6 -v
script:
    - prove -v -e 'perl6 -Ilib' t/


