Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
even simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
weshooper committed Jul 11, 2020
1 parent 59b681b commit 86ac42e
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,18 @@ agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
execution_time_limit:
minutes: 15 # Default is 1 hour

blocks:
- name: Everything
task:
prologue:
commands:
- phpbrew use php-7.4.6
- checkout
- cache restore
- export "PATH=./vendor/bin:${PATH}" # So we can use dependency executables
jobs:
- name: CS & unit tests
commands:
- composer install --prefer-dist --no-suggest --no-interaction
- php-cs-fixer fix --config=.php_cs.dist --dry-run --diff -v --stop-on-violation
- phpunit --stop-on-failure
epilogue:
always:
- name: CS & unit tests
commands:
- phpbrew use php-7.4.6
- checkout
- cache restore # Composer dependencies
- export "PATH=./vendor/bin:${PATH}" # So we can use dependency executables
- composer install --prefer-dist --no-suggest --no-interaction
- php-cs-fixer fix --config=.php_cs.dist --dry-run --diff -v --stop-on-violation
- phpunit --stop-on-failure
- cache store

0 comments on commit 86ac42e

Please sign in to comment.