box: node:boron

build:
  steps:
    - npm-install
    - script: # Install custom font from fontello
        name: fontello
        code: npm run fontello
    - script: # Install libfontconfig for PhantomJS to work
        name: install-libfontconfig
        code: >
          apt-get update &&
          apt-get install -y --no-install-recommends libfontconfig
    - npm-test
    - script:
        name: build
        code: npm run build

deploy:
  steps:
    - script:
        name: log source-dir
        code: ls -l
    - s3sync:
      key-id: ${AWS_KEY}
      key-secret: ${AWS_SECRET}
      bucket-url: ${AWS_BUCKET}
      source-dir: dist

box: node:boron

build:
  steps:
    - npm-install
    - script: # Install custom font from fontello
        name: fontello
        code: npm run fontello
    - script: # Install libfontconfig for PhantomJS to work
        name: install-libfontconfig
        code: >
          apt-get update &&
          apt-get install -y --no-install-recommends libfontconfig
    - npm-test
    - script:
        name: build
        code: npm run build

deploy:
  steps:
    - s3sync:
      key-id: ${AWS_KEY}
      key-secret: ${AWS_SECRET}
      bucket-url: ${AWS_BUCKET}
      source-dir: dist

Remove directory listing from deploy pipeline
Remove directory listing from deploy pipeline
