sudo: required

language: generic

services:
    - docker

before_install:
    - docker pull liones/fontoxml-docker-base-pipelines:latest

before_script:
    - mkdir -p ./test/assets
    - curl -L https://github.com/LeoWoerteler/QT3TS/archive/master.tar.gz | tar -xz -C ./test/assets

script:
    - docker run --volume=`pwd`:/fontoxpath -w /fontoxpath liones/fontoxml-docker-base-pipelines /bin/sh -c "
        npm install &&
        timeout 10m xvfb-run -a npm run test --ci_mode &&
        timeout 10m xvfb-run -a npm run test --integration_tests --ci_mode &&
        timeout 10m xvfb-run -a npm run test --integration_tests --ci_mode --qt3;"
