# don't build tags, it's redundant
if: tag IS blank

git:
  depth: 3

language: node_js

node_js:
  - "10"
  - "8"

os:
  - linux
  - windows

env:
  global:
    - NO_UPDATE_NOTIFIER=1
    - NODE_NO_WARNINGS=1

matrix:
  fast_finish: true

cache: npm

before_install:
  - npm config set loglevel warn
  # - set PATH=%APPDATA%\npm;"C:\Program Files\Git\mingw64\bin";%PATH%

install: npm ci

before_script:
  - git config --global user.email test@example.com
  - git config --global user.name "Tester McPerson"
  - if [[ "$TRAVIS_OS_NAME" = "windows" ]]; then npm i -g yarn; fi

script:
  - npm run ci

notifications:
  slack: lernajs:qHyrojRoqBBu7OhDyX1OMiHQ

# don't build tags, it's redundant
if: tag IS blank

git:
  depth: 3

language: node_js

node_js:
  - "10"
  - "8"

os:
  - linux
  - windows

env:
  global:
    - NO_UPDATE_NOTIFIER=1
    - NODE_NO_WARNINGS=1

matrix:
  fast_finish: true

cache: npm

before_install:
  # - set PATH=%APPDATA%\npm;"C:\Program Files\Git\mingw64\bin";%PATH%

install: npm ci

before_script:
  - npm config set loglevel warn
  - git config --global user.email test@example.com
  - git config --global user.name "Tester McPerson"
  - if [[ "$TRAVIS_OS_NAME" = "windows" ]]; then npm i -g yarn; fi

script:
  - npm run ci

notifications:
  slack: lernajs:qHyrojRoqBBu7OhDyX1OMiHQ

Move loglevel config to before_script
build: Move loglevel config to before_script
