diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..709ffd5
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,14 @@
+# These files are not included when making
+# an archive of this repository.
+/tests export-ignore
+.coveralls.yml export-ignore
+.gitattributes export-ignore
+.gitignore export-ignore
+.scrutinizer.yml export-ignore
+.travis.yml export-ignore
+build.properties
+build.xml export-ignore
+composer.json export-ignore
+modman export-ignore
+phpunit.xml.dist export-ignore
+travis.properties
diff --git a/.gitignore b/.gitignore
index 6867a05..079f43d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,5 @@ bin/
vendor/
composer.lock
build/logs/
+build/
+build.xml
diff --git a/.scrutinizer.yml b/.scrutinizer.yml
index 3cd704d..849e539 100644
--- a/.scrutinizer.yml
+++ b/.scrutinizer.yml
@@ -1,3 +1,8 @@
inherit: true
tools:
+ # @see https://scrutinizer-ci.com/docs/tools/php/security-advisory-checker/
sensiolabs_security_checker: true
+ # @see https://scrutinizer-ci.com/docs/tools/php/php-analyzer/
+ php_analyzer: true
+ # @see https://scrutinizer-ci.com/docs/tools/php/pdepend/
+ php_pdepend: true
diff --git a/.travis.yml b/.travis.yml
index abd02a7..d278b45 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,4 +5,8 @@ php:
- 5.3
install:
- composer install
-script: php bin/phing
+script: php bin/phing -propertyfile travis.properties build-travis
+cache:
+ directories:
+ - vendor
+ - build/magento
diff --git a/build.properties b/build.properties
new file mode 100644
index 0000000..32c70dd
--- /dev/null
+++ b/build.properties
@@ -0,0 +1,7 @@
+# Running a build locally, this also is used
+# to define all the default properties.
+DB_USER=root
+DB_PASS=root
+DB_NAME=magento
+DB_HOST=127.0.0.1
+MAGENTO_VERSION=1.9.0.1
diff --git a/build.xml b/build.xml
index 0958671..5e7a9b0 100644
--- a/build.xml
+++ b/build.xml
@@ -1,16 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
@@ -22,6 +45,38 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/composer.json b/composer.json
index a68b04a..b614c13 100644
--- a/composer.json
+++ b/composer.json
@@ -17,7 +17,8 @@
"require-dev": {
"phing/phing": "*",
"phpunit/phpunit": "*",
- "satooshi/php-coveralls": "*"
+ "satooshi/php-coveralls": "*",
+ "n98/magerun": "*"
},
"config": {
"bin-dir": "bin"
@@ -29,14 +30,16 @@
},
"archive": {
"exclude": [
- "build.xml",
- "build/",
- "phpunit.xml.dist",
"tests/",
".coveralls.yml",
+ ".gitattributes",
".gitignore",
".scrutinizer.yml",
- ".travis.yml"
+ ".travis.yml",
+ "build.properties",
+ "build.xml",
+ "phpunit.xml.dist",
+ "travis.properties"
]
}
}
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index c0c1ebc..bd9f644 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -2,6 +2,7 @@
- tests/*Test.php
+ tests/
+
+
+ app/
+ lib/
+
+
+
-
+
diff --git a/tests/app/code/community/Bitpay/Bitcoins/Block/IframeTest.php b/tests/app/code/community/Bitpay/Bitcoins/Block/IframeTest.php
new file mode 100644
index 0000000..15c678f
--- /dev/null
+++ b/tests/app/code/community/Bitpay/Bitcoins/Block/IframeTest.php
@@ -0,0 +1,28 @@
+assertTrue(true);
+ }
+}
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
new file mode 100644
index 0000000..d6636f6
--- /dev/null
+++ b/tests/bootstrap.php
@@ -0,0 +1,4 @@
+