Compare commits

...

2 commits

Author SHA1 Message Date
297fd317b0
fix unit test
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-28 17:26:46 +02:00
0e90174a6d
drone pipeline: install dev dependencies for unit tests
Some checks failed
continuous-integration/drone/push Build is failing
2020-06-28 17:25:21 +02:00
2 changed files with 17 additions and 7 deletions

View file

@ -4,7 +4,22 @@ type: docker
name: default
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
volumes:
- name: composer-cache
@ -14,11 +29,6 @@ steps:
commands:
- 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
image: docker
volumes:

View file

@ -14,6 +14,6 @@ final class HelloWorldTest extends TestCase
public function testGetHello(): void
{
$hello = new HelloWorld();
$this->assertSame('Hello Drone! :3', $hello->getHello());
$this->assertSame('Hello world! :3', $hello->getHello());
}
}