version: v1.0
name: NPM Test
agent:
  machine:
    type: e1-standard-2
    os_image: ubuntu1804
blocks:
  - name: Test
    task:
      jobs:
        - name: Test
          commands:
            - install-package yasm
            - checkout
            - git submodule init
            - git submodule update
            - sem-version node 8.9.3
            - cache restore
            - npm install
            - cache store
            - npm run build --if-present
            - npm test
