version: 2
jobs:
  build:
    docker:
      - image: 'circleci/node:latest'
    steps:
      - checkout
      - run:
          name: install
          command: npm install
      - run:
          command: node ./test/server.js
          background: true
      - run: npm test
      - run:
          name: release
          command: npm run semantic-release || true
