steps:

# Install common dependencies.
- name: 'node:10'
  id: 'yarn-common'
  entrypoint: 'yarn'
  args: ['install']

# Install tfjs dependencies.
- name: 'node:10'
  dir: 'knn-classifier'
  entrypoint: 'yarn'
  id: 'yarn'
  args: ['install']
  waitFor: ['yarn-common']

# Build.
- name: 'node:10'
  dir: 'knn-classifier'
  entrypoint: 'yarn'
  id: 'build'
  args: ['build']
  waitFor: ['yarn']

# Run tests.
- name: 'node:10'
  dir: 'knn-classifier'
  entrypoint: 'yarn'
  id: 'test'
  args: ['test']
  waitFor: ['yarn']

# General configuration
timeout: 1800s
logsBucket: 'gs://tfjs-build-logs'
substitutions:
  _NIGHTLY: ''
options:
  logStreamingOption: 'STREAM_ON'
  substitution_option: 'ALLOW_LOOSE'
