Prepare for 2.1.1

This commit is contained in:
Gregory Oschwald
2014-12-03 06:59:16 -08:00
parent 64f2262093
commit 01f58d749b
5 changed files with 34 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env php
<?php
require_once 'geoip2.phar';
use GeoIp2\Database\Reader;
$reader = new Reader('maxmind-db/test-data/GeoIP2-City-Test.mmdb');
$record = $reader->city('81.2.69.160');
if ( $record->country->isoCode === 'GB' ) {
exit(0);
}
print('Problem with Phar!');
exit(1);
+10 -4
View File
@@ -25,12 +25,18 @@ fi
php composer.phar self-update
php composer.phar update --no-dev
if [ ! -f box.phar ]; then
wget -O box.phar "https://github.com/kherge-archive/Box/releases/download/2.4.4/box-2.4.4.phar"
fi
# We currently use a custom version of Box due to
# https://github.com/box-project/box2/issues/88. There are PRs from Greg with
# the fixes.
#
# if [ ! -f box.phar ]; then
# wget -O box.phar "https://github.com/kherge-archive/Box/releases/download/2.4.4/box-2.4.4.phar"
# fi
php box.phar build
../box2/bin/box build
./dev-bin/phar-test.php
# Download test deps
php composer.phar update
./vendor/bin/phpunit