
steps:

# Install common dependencies.
- name: 'gcr.io/learnjs-174218/release'
  entrypoint: 'yarn'
  id: 'yarn-common'
  args: ['install']

# Install tfjs-converter dependencies.
- name: 'gcr.io/learnjs-174218/release'
  dir: 'tfjs-converter'
  entrypoint: 'yarn'
  id: 'yarn'
  args: ['install']
  waitFor: ['yarn-common']

# Create python pips
- name: 'gcr.io/learnjs-174218/release'
  id: 'create-pips'
  entrypoint: 'bash'
  args:
    - './tfjs-converter/scripts/create_python_pips.sh'
  waitFor: ['yarn-common']

# Run python tests.
- name: 'gcr.io/learnjs-174218/release'
  dir: 'tfjs-converter/python'
  entrypoint: 'bash'
  id: 'test-python-pip'
  args: ['./build-pip-package.sh', '--test', '/tmp/tfjs-pips']
  waitFor: ['create-pips']

timeout: 1800s
logsBucket: 'gs://tfjs-build-logs'
substitutions:
  _NIGHTLY: ''
options:
  logStreamingOption: 'STREAM_ON'
  substitution_option: 'ALLOW_LOOSE'
  machineType: 'N1_HIGHCPU_8'
