Skip to content

Commit e28b0cd

Browse files
committed
Configuration for tests on Travis CI
1 parent 33f7b9f commit e28b0cd

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ env:
2121
- MAGENTO_VERSION=magento-mirror-1.7.0.2
2222
script:
2323
- composer install --dev --no-interaction
24-
- phpunit --bootstrap=test/bootstrap.php test
24+
- phpunit
2525
- curl -sSL https://raw.githubusercontent.com/schmengler/MageTestStand/master/setup.sh | bash

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
"type": "magento-module",
55
"description": "Anonymizes all Customer Data",
66
"require": {
7-
"magento-hackathon/magento-composer-installer": "*",
87
"fzaninotto/faker": ">=1.0",
98
"firegento/psr0autoloader": ">=0.1.0"
109
},
10+
"autoload": {
11+
"psr-4": {
12+
"IntegerNet\\Anonymizer\\": "src/lib/IntegerNet/Anonymizer"
13+
}
14+
},
1115
"require-dev": {
12-
"ecomdev/ecomdev_phpunit": "~0.3.7"
16+
"ecomdev/ecomdev_phpunit": "~0.3.7",
17+
"aoepeople/composer-installers": "*"
1318
},
1419
"repositories": [
1520
{

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
processIsolation="false"
99
stopOnFailure="false"
1010
syntaxCheck="false"
11-
bootstrap="test/bootstrap.php"
11+
bootstrap="vendor/autoload.php"
1212
>
1313
<testsuites>
1414
<testsuite name="Unit">

test/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
// Use this bootstrap file if you run the unit tests within a Magento installation
23
define('CLASS_DIR', realpath(__DIR__ . '/../src/lib/'));
34
set_include_path(get_include_path().PATH_SEPARATOR.CLASS_DIR);
45
spl_autoload_register(function($className)

0 commit comments

Comments
 (0)