# https://hub.docker.com/_/ubuntu
image: ubuntu:18.04

before_script:
  - apt-get update -yqq
  - apt-get install -y curl
  - curl -sL https://deb.nodesource.com/setup_12.x | bash -
  - apt-get install -y nodejs
  - npm -v
  #- ./install-npm-deps.sh
  - npm install eslint -g
  - npm install eslint-plugin-dollar-sign@latest --save-dev
  - npm install eslint-plugin-jquery@latest --save-dev
  - npm install jshint -g
  - npm install typescript -g
  - npm install @types/node -g
  - npm install tone@14.7.77 -g
  - npm install webworkify@1.5.0 -g

test:
  script:
  - ./check-js.sh
