box: blisteringherb/scholarship@0.0.6

build:
  # The steps that will be executed on build
  steps:
    - script:
        name: Install MongoDB
        code: |-
          sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
          echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
          sudo apt-get update
          sudo apt-get install -y mongodb-org
          sudo service mongod status
    - script:
        name: Update Composer
        code: sudo composer self-update
    - leipert/composer-install@0.0.1
    - script:
        name: install php mongo extension
        code: sudo apt-get install php5-mongo
    - script:
        name: phpunit
        code: |-
          cp .env.example .env
          php artisan migrate
          php artisan db:seed
          vendor/bin/phpunit

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:
      - iansmith9876/pretty-slack-notify:
          team: dosomething
          token: $SLACK_TOKEN
          channel: $SLACK_ROOM
          username: george
      - script:
          name: Run Runscope tests
          code: curl $RUNSCOPE_TRIGGER_URL

box: blisteringherb/scholarship@0.0.6

build:
  # The steps that will be executed on build
  steps:
    - script:
        name: Install MongoDB
        code: |-
          sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
          echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
          sudo apt-get update
          sudo apt-get install -y mongodb-org
          sudo service mongod status
    - script:
        name: Update Composer
        code: sudo composer self-update
    - leipert/composer-install@0.0.1
    - script:
        name: install php mongo extension
        code: sudo apt-get install php5-mongo
    - script:
        name: phpunit
        code: |-
          cp .env.example .env
          php artisan migrate
          php artisan db:seed
          vendor/bin/phpunit

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
      - script:
          name: Run Runscope tests
          code: curl $RUNSCOPE_TRIGGER_URL

Use a better Slack notification step.
Use a better Slack notification step.

We've been using this step on the Voting App for the past month,
and it offers a lot more useful notifications for deploy steps.
