Skip to content

Commit

Permalink
fix code coverage and adds docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
matteosister committed Sep 18, 2015
1 parent 911eeae commit 6a098ec
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 89 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM php

RUN apt-get update && apt-get install -qqy git && rm -r /var/lib/apt/lists/*
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "gitelephant"

RUN docker-php-ext-install mbstring
RUN pecl install xdebug
RUN echo "zend_extension = `php-config --extension-dir`/xdebug.so" >> /usr/local/etc/php/php.ini

WORKDIR /app
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
php:
build: .
volumes:
- ".:/app"
5 changes: 0 additions & 5 deletions docker-test

This file was deleted.

34 changes: 0 additions & 34 deletions docker/1.8.5.3

This file was deleted.

34 changes: 0 additions & 34 deletions docker/1.9.2

This file was deleted.

3 changes: 0 additions & 3 deletions docker/setup

This file was deleted.

4 changes: 2 additions & 2 deletions tests/GitElephant/Command/BaseCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BaseCommandTest extends TestCase
/**
* test class constructor
*
* @covers BaseCommand::__construct
* @covers GitElephant\Command\BaseCommand::__construct
*/
public function testConstructor()
{
Expand Down Expand Up @@ -59,7 +59,7 @@ public function testConstructor()
/**
* test static factory
*
* @covers BaseCommand::getInstance
* @covers GitElephant\Command\BaseCommand::getInstance
*/
public function testGetInstance()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/GitElephant/Objects/ObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public function testRevParse()
/**
* test repository getter and setter
*
* @covers Object::getRepository
* @covers Object::setRepository
* @covers GitElephant\Objects\Object::getRepository
* @covers GitElephant\Objects\Object::setRepository
*/
public function testGetSetRepository()
{
Expand Down
18 changes: 9 additions & 9 deletions tests/GitElephant/RepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,9 @@ public function testIsBare()
/**
* test add, remove and get global configs
*
* @covers Repository::addGlobalConfig
* @covers Repository::getGlobalConfigs
* @covers Repository::removeGlobalConfig
* @covers GitElephant\Repository::addGlobalConfig
* @covers GitElephant\Repository::getGlobalConfigs
* @covers GitElephant\Repository::removeGlobalConfig
*/
public function testGlobalConfigs()
{
Expand All @@ -887,9 +887,9 @@ public function testGlobalConfigs()
/**
* test add, remove and get global options
*
* @covers Repository::addGlobalOption
* @covers Repository::getGlobalOptions
* @covers Repository::removeGlobalOption
* @covers GitElephant\Repository::addGlobalOption
* @covers GitElephant\Repository::getGlobalOptions
* @covers GitElephant\Repository::removeGlobalOption
*/
public function testGlobalOptions()
{
Expand All @@ -916,9 +916,9 @@ public function testGlobalOptions()
/**
* test add, remove and get global command arguments
*
* @covers Repository::addGlobalCommandArgument
* @covers Repository::getGlobalCommandArguments
* @covers Repository::removeGlobalCommandArgument
* @covers GitElephant\Repository::addGlobalCommandArgument
* @covers GitElephant\Repository::getGlobalCommandArguments
* @covers GitElephant\Repository::removeGlobalCommandArgument
*/
public function testGlobalCommandArguments()
{
Expand Down

0 comments on commit 6a098ec

Please sign in to comment.