---
os: linux
dist: xenial

jobs:
  include:
    - name: Cli xsltproc
      language: minimal
      apt:
        packages:
          - xsltproc
          - libxml2-utils
      script: ./test.sh

    - name: Firefox
      language: javascript
      addons:
        firefox: latest
      install: npm install karma karma-firefox-launcher karma-mocha karma-chai mocha chai
      script: npx karma start --single-run --browsers FirefoxHeadless karma.conf.js

    - name: Chrome
      language: javascript
      addons:
        chrome: stable
      install: npm install karma karma-chrome-launcher karma-mocha karma-chai mocha chai
      script: npx karma start --single-run --browsers ChromeHeadless karma.conf.js

---
os: linux

jobs:
  include:
    - name: Cli xsltproc
      dist: xenial
      language: shell
      addons:
        apt:
          packages:
            - xsltproc
            - libxml2-utils
      script: ./test.sh

    - name: Firefox
      dist: bionic
      language: node_js
      node_js: lts/*
      addons:
        firefox: latest
      install: npm install karma karma-firefox-launcher karma-mocha karma-chai mocha chai
      script: npx karma start --single-run --browsers FirefoxHeadless karma.conf.js

    - name: Chrome
      dist: bionic
      language: node_js
      node_js: lts/*
      addons:
        chrome: stable
      install: npm install karma karma-chrome-launcher karma-mocha karma-chai mocha chai
      script: npx karma start --single-run --browsers ChromeHeadless karma.conf.js

Fix cli test failure, try node/lts on bionic
Fix cli test failure, try node/lts on bionic
