box: dosomething/ds-docker-php

services:
  - redis

build:
  # The steps that will be executed on build
  steps:
    - script:
        name: start mongodb
        code: |-
          sudo /usr/bin/mongod --quiet --config /etc/mongod.conf --fork --logpath /var/log/mongod.log
    - leipert/composer-install@0.9.1
    - npm-install
    - script:
        name: build front-end assets
        code: npm run build
    - script:
        name: phpunit
        code: |-
          php artisan northstar:setup
          export REDIS_HOST=$REDIS_PORT_6379_TCP_ADDR
          export REDIS_PORT=$REDIS_PORT_6379_TCP_PORT
          vendor/bin/phpunit
    - script:
        name: prepare for production
        code: |-
          rm -rf storage/cache # clear cached test keys
          rm .env # reset APP_ENV=production
          composer install --no-dev # remove dev dependencies
          php artisan package:discover # discover packages

deploy:
  steps:
    - bundle-install
    - script:
        name: write private key env var
        code: |-
          export CAP_PRIVATE_KEY=`mktemp`
          echo -e $WERCKER_APP_KEY_PRIVATE > $CAP_PRIVATE_KEY
    - cap
  after-steps:
      - sherzberg/slack-notify:
          subdomain: dosomething
          token: $SLACK_TOKEN
          channel: $SLACK_ROOM

box: dosomething/ds-docker-php:7.2

services:
  - redis

build:
  # The steps that will be executed on build
  steps:
    - script:
        name: start mongodb
        code: |-
          sudo /usr/bin/mongod --quiet --config /etc/mongod.conf --fork --logpath /var/log/mongod.log
    - leipert/composer-install@0.9.1
    - npm-install
    - script:
        name: build front-end assets
        code: npm run build
    - script:
        name: phpunit
        code: |-
          php artisan northstar:setup
          export REDIS_HOST=$REDIS_PORT_6379_TCP_ADDR
          export REDIS_PORT=$REDIS_PORT_6379_TCP_PORT
          vendor/bin/phpunit
    - script:
        name: prepare for production
        code: |-
          rm -rf storage/cache # clear cached test keys
          rm .env # reset APP_ENV=production
          composer install --no-dev # remove dev dependencies
          php artisan package:discover # discover packages

deploy:
  steps:
    - bundle-install
    - script:
        name: write private key env var
        code: |-
          export CAP_PRIVATE_KEY=`mktemp`
          echo -e $WERCKER_APP_KEY_PRIVATE > $CAP_PRIVATE_KEY
    - cap
  after-steps:
      - sherzberg/slack-notify:
          subdomain: dosomething
          token: $SLACK_TOKEN
          channel: $SLACK_ROOM

Use updated Wercker box with PHP 7.2.
Use updated Wercker box with PHP 7.2.
