Compare commits
2 Commits
2a0af653cb
...
297fd317b0
| Author | SHA1 | Date |
|---|---|---|
|
|
297fd317b0 | |
|
|
0e90174a6d |
22
.drone.yml
22
.drone.yml
|
|
@ -4,7 +4,22 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install
|
- name: install dependencies
|
||||||
|
image: composer
|
||||||
|
volumes:
|
||||||
|
- name: composer-cache
|
||||||
|
path: /tmp/cache
|
||||||
|
environment:
|
||||||
|
COMPOSER_CACHE_DIR: /tmp/cache
|
||||||
|
commands:
|
||||||
|
- composer install --no-progress --no-interaction
|
||||||
|
|
||||||
|
- name: run unit tests
|
||||||
|
image: php:7.4
|
||||||
|
commands:
|
||||||
|
- vendor/bin/phpunit -c phpunit.xml
|
||||||
|
|
||||||
|
- name: install dependencies (without dev)
|
||||||
image: composer
|
image: composer
|
||||||
volumes:
|
volumes:
|
||||||
- name: composer-cache
|
- name: composer-cache
|
||||||
|
|
@ -14,11 +29,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- composer install --no-progress --no-interaction --no-dev --optimize-autoloader
|
- composer install --no-progress --no-interaction --no-dev --optimize-autoloader
|
||||||
|
|
||||||
- name: unit tests
|
|
||||||
image: php:7.4
|
|
||||||
commands:
|
|
||||||
- vendor/bin/phpunit -c phpunit.xml
|
|
||||||
|
|
||||||
- name: build image
|
- name: build image
|
||||||
image: docker
|
image: docker
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,6 @@ final class HelloWorldTest extends TestCase
|
||||||
public function testGetHello(): void
|
public function testGetHello(): void
|
||||||
{
|
{
|
||||||
$hello = new HelloWorld();
|
$hello = new HelloWorld();
|
||||||
$this->assertSame('Hello Drone! :3', $hello->getHello());
|
$this->assertSame('Hello world! :3', $hello->getHello());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue