Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Dec 14, 2016
1 parent 3b2cd7c commit 6634b22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
11 changes: 0 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,9 @@ language: php

php:
- 5.6
- 7
- 7.1
- hhvm

env:
- ENGINE=PDO_MYSQL56
- ENGINE=PDO_MYSQL57
- ENGINE=PDO_MYSQL_MARIADB55
- ENGINE=PDO_MYSQL_MARIADB10
- ENGINE=PDO_PGSQL
- ENGINE=SQLite3
- ENGINE=GEOS34
- ENGINE=GEOS35
- ENGINE=GEOS36

before_script:
- if [[ $ENGINE = PDO_MYSQL56 ]]; then ENGINE=PDO_MYSQL; sudo bash travis/install-mysql-5.6.sh; fi;
Expand Down
2 changes: 1 addition & 1 deletion phpunit-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function bootstrap()
$prefix = '/usr/local/lib/';
}

$sqlite3->loadExtension($prefix . 'libspatialite.so');
$sqlite3->loadExtension($prefix . 'mod_spatialite.so');

$statement = $sqlite3->query('SELECT sqlite_version(), spatialite_version()');
list ($sqliteVersion, $spatialiteVersion) = $statement->fetchArray(SQLITE3_NUM);
Expand Down
4 changes: 4 additions & 0 deletions travis/install-spatialite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ cd geos-3.6.0
./configure
make
sudo make install
cd ..

wget http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.2.0.tar.gz
tar zxf libspatialite-4.2.0.tar.gz
cd libspatialite-4.2.0
./configure
make
sudo make install
cd ..

sudo ldconfig

if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then
printf "[sqlite3]\nsqlite3.extension_dir = /usr/local/lib" > sqlite.ini
Expand Down

0 comments on commit 6634b22

Please sign in to comment.