Skip to content

Commit

Permalink
Add Travis configuration and .gitignore files.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 6, 2017
1 parent 95df882 commit e73845e
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .gitignore
@@ -0,0 +1,29 @@
.DS_Store
.buildpath
.cache
.project
.settings
nbproject/
*~
.#*
*.bak
*.orig
*.rej
*.swp
*.kdev4
.kdev4/*

# Ignore ALL config files
conf.php

# Ignore testing files
run-tests.log
/test/*/*/*.diff
/test/*/*/*.exp
/test/*/*/*.log
/test/*/*/*.out
/test/*/*/*/*.diff
/test/*/*/*/*.exp
/test/*/*/*/*.log
/test/*/*/*/*.out

2 changes: 2 additions & 0 deletions .travis.ini
@@ -0,0 +1,2 @@
extension = memcache.so
extension = mongo.so
2 changes: 2 additions & 0 deletions .travis.php7.ini
@@ -0,0 +1,2 @@
extension = memcached.so
extension = mongodb.so
41 changes: 41 additions & 0 deletions .travis.yml
@@ -0,0 +1,41 @@
sudo: false
notifications:
irc: "chat.freenode.net#horde"
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
services:
- memcached
- mongodb
- mysql
- postgresql
before_install:
- mysql -e "create database IF NOT EXISTS test;" -uroot
- psql -c "create database test;" -U postgres
before_script:
- export SESSIONHANDLER_MEMCACHE_TEST_CONFIG='{"sessionhandler":{"memcache":{"hostspec":["localhost"],"port":[11211]}}}';
export SESSIONHANDLER_MONGO_TEST_CONFIG='{"sessionhandler":{"mongo":"mongodb://localhost"}}';
export SESSIONHANDLER_SQL_MYSQL_TEST_CONFIG='{"sessionhandler":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}';
export SESSIONHANDLER_SQL_MYSQLI_TEST_CONFIG='{"sessionhandler":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}';
export SESSIONHANDLER_SQL_PDO_MYSQL_TEST_CONFIG='{"sessionhandler":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}';
export SESSIONHANDLER_SQL_PDO_PGSQL_TEST_CONFIG='{"sessionhandler":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}';
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ] || [ $(echo "$TRAVIS_PHP_VERSION 7.0" | tr " " "\n" | sort -V | head -n1) = "7.0" ];
then
phpenv config-add .travis.php7.ini;
else
phpenv config-add .travis.ini;
fi
- phpenv config-rm xdebug.ini || echo "XDebug not enabled"
- pear install channel://pear.horde.org/Horde_Role
- pear install package.xml
script:
- php $(find test -name AllTests.php)

0 comments on commit e73845e

Please sign in to comment.