Skip to content

Commit 5d37c6e

Browse files
authored
Merge pull request #6 from caciobanu/master
Added .travis.yml file for TravisCI
2 parents 2c5c8ad + dbf273a commit 5d37c6e

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
sudo: false
2+
language: php
3+
4+
php:
5+
- 5.3
6+
- 5.4
7+
- 5.5
8+
- 5.6
9+
10+
env:
11+
- MONGO_VERSION=stable
12+
13+
matrix:
14+
include:
15+
- php: 7.0
16+
env: ADAPTER_VERSION="^1.0.0" MONGODB_VERSION=stable
17+
18+
services: mongodb
19+
20+
before_script:
21+
- if [ "x${MONGO_VERSION}" != "x" ]; then yes '' | pecl -q install -f mongo-${MONGO_VERSION}; fi
22+
- if [ "x${MONGODB_VERSION}" != "x" ]; then pecl install -f mongodb-${MONGODB_VERSION}; fi
23+
- if [ "x${ADAPTER_VERSION}" != "x" ]; then composer require "alcaeus/mongo-php-adapter=${ADAPTER_VERSION}" --ignore-platform-reqs; fi
24+
- composer self-update
25+
- composer install --dev
26+
27+
script:
28+
- ./vendor/bin/phpunit

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"friendsofphp/php-cs-fixer": "^1.0",
2525
"mikey179/vfsStream": "1.*"
2626
},
27-
"minimum-stability": "dev",
2827
"autoload": {
2928
"psr-0": { "AntiMattr\\MongoDB\\Migrations\\": "src/" }
3029
},

0 commit comments

Comments
 (0)