language: node_js
node_js: "node"
cache: npm

before_script:
  - mkdir -p ./test/assets/XQUTS ./test/assets/QT3TS
  - curl -L https://github.com/LeoWoerteler/QT3TS/archive/master.tar.gz | tar -xz -C ./test/assets/QT3TS --strip-components=1
  - curl -L https://github.com/LeoWoerteler/XQUTS/archive/master.tar.gz | tar -xz -C ./test/assets/XQUTS --strip-components=1
  - unzip -q test/assets/QT3TS/xqueryx.zip -d ./test/assets/QT3TS/

script:
    - timeout 600 npm run ci-test -- --reporter dot;
    - timeout 600 npm run ci-qt3tests -- --reporter dot;
    - timeout 600 npm run integrationtests -- --dist --reporter dot;
    - timeout 600 npm run qt3tests -- --dist --reporter dot;
    - timeout 600 npm run qt3testsxqueryx -- --reporter dot;
    - timeout 600 npm run ci-xqutstests -- --reporter dot;
    - timeout 600 npm run xqutstestsxqueryx -- --reporter dot;

after_success: npm run coverage

language: node_js
node_js: "node"
cache: npm

# Greenkeeper wants to install new versions of pckages, often
# disregarding the package lock. This does not always work with `npm ci`
install: case $TRAVIS_BRANCH in greenkeeper*) npm i;; *) npm ci;; esac;

before_script:
  - mkdir -p ./test/assets/XQUTS ./test/assets/QT3TS
  - curl -L https://github.com/LeoWoerteler/QT3TS/archive/master.tar.gz | tar -xz -C ./test/assets/QT3TS --strip-components=1
  - curl -L https://github.com/LeoWoerteler/XQUTS/archive/master.tar.gz | tar -xz -C ./test/assets/XQUTS --strip-components=1
  - unzip -q test/assets/QT3TS/xqueryx.zip -d ./test/assets/QT3TS/

script:
    - timeout 600 npm run ci-test -- --reporter dot;
    - timeout 600 npm run ci-qt3tests -- --reporter dot;
    - timeout 600 npm run integrationtests -- --dist --reporter dot;
    - timeout 600 npm run qt3tests -- --dist --reporter dot;
    - timeout 600 npm run qt3testsxqueryx -- --reporter dot;
    - timeout 600 npm run ci-xqutstests -- --reporter dot;
    - timeout 600 npm run xqutstestsxqueryx -- --reporter dot;

after_success: npm run coverage

Make the greenkeeper pull requests more stable
Make the greenkeeper pull requests more stable

Greenkeeper does not always update the package lock. This may
sometimes cause `npm ci` to fail, causing the build to fail.
