language: node_js
node_js:
  - 10.0
  - 12
git:
  depth: 5
sudo: false
before_install:
  - npm set verify-store-integrity false
  - git fetch --unshallow
  - curl -L https://unpkg.com/@pnpm/self-installer | PNPM_VERSION=1.33.2 node
  # Testing whether pnpm can upgrade itself
  - npm install --global npm@latest
  - pnpm i -g pnpm@next
  - pnpm -v
install:
  - pnpm install --no-lock --force
script:
  - set -e # Fail on first error
  # TODO: fix commitlint
  # - /bin/bash lint-commits.sh
  # - ./tools/node_modules/.bin/commitlint --from=$TRAVIS_COMMIT
  - pnpm t
  - set +e
cache:
  npm: false
env:
  global:
    - CC=clang CXX=clang++ npm_config_clang=1
    - GIT_NAME: Travis CI
    - GIT_EMAIL: nobody@nobody.org
    - GITHUB_REPO: pnpm/pnpm
notifications:
  email: false
