forked from githuby/getting-started-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
35 lines (35 loc) · 1.09 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
box: php
dev:
steps:
- install-packages:
packages: git
- script:
name: install composer
code: curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
- script:
name: install dependencies
code: composer install --no-interaction
- internal/watch:
code: php -S 0.0.0.0:8000
reload: true
build:
steps:
- install-packages:
packages: git
- script:
name: install phpunit
code: |-
curl -L https://phar.phpunit.de/phpunit.phar -o /usr/local/bin/phpunit
chmod +x /usr/local/bin/phpunit
- script:
name: install composer
code: curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
- script:
name: install dependencies
code: composer install --no-interaction
- script:
name: Serve application
code: php -S localhost:8000 >> /dev/null &
- script:
name: PHPUnit integration tests
code: phpunit --configuration phpunit.xml