machine:
   php:
      version: 5.5.9

test:
  override:
    - mkdir -p $CIRCLE_TEST_REPORTS/phpunit
    - phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml tests

dependencies:
   override:
      - composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader

general:
  artifacts:
    - "storage/logs"

deployment:
  staging:
    branch: dev-laravel5
    commands:
      - composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader --no-dev
      - chmod +x ./scripts/deploy_sourceforge.sh
      - ./scripts/deploy_sourceforge.sh
  release:
    tag: /v[0-9]+(\.[0-9]+)*/
    commands:
      - composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader --no-dev
      - chmod +x ./scripts/deploy_sourceforge.sh
      - ./scripts/deploy_sourceforge.sh
