Skip to content

Commit

Permalink
Merge pull request #6 from caciobanu/master
Browse files Browse the repository at this point in the history
Added .travis.yml file for TravisCI
  • Loading branch information
redthor authored Aug 31, 2016
2 parents 2c5c8ad + dbf273a commit 5d37c6e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
sudo: false
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6

env:
- MONGO_VERSION=stable

matrix:
include:
- php: 7.0
env: ADAPTER_VERSION="^1.0.0" MONGODB_VERSION=stable

services: mongodb

before_script:
- if [ "x${MONGO_VERSION}" != "x" ]; then yes '' | pecl -q install -f mongo-${MONGO_VERSION}; fi
- if [ "x${MONGODB_VERSION}" != "x" ]; then pecl install -f mongodb-${MONGODB_VERSION}; fi
- if [ "x${ADAPTER_VERSION}" != "x" ]; then composer require "alcaeus/mongo-php-adapter=${ADAPTER_VERSION}" --ignore-platform-reqs; fi
- composer self-update
- composer install --dev

script:
- ./vendor/bin/phpunit
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"friendsofphp/php-cs-fixer": "^1.0",
"mikey179/vfsStream": "1.*"
},
"minimum-stability": "dev",
"autoload": {
"psr-0": { "AntiMattr\\MongoDB\\Migrations\\": "src/" }
},
Expand Down

0 comments on commit 5d37c6e

Please sign in to comment.