Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from niels-nijens/ci
Browse files Browse the repository at this point in the history
Add Travis CI
  • Loading branch information
niels-nijens committed Aug 30, 2017
2 parents b1d4b93 + 12d0d80 commit f5c9bf5
Show file tree
Hide file tree
Showing 4 changed files with 386 additions and 645 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
@@ -0,0 +1,23 @@
language: php

sudo: false

matrix:
include:
- php: 5.6
- php: 7.0
- php: 7.0
env: SYMFONY_VERSION=2.8.*
- php: 7.1

before_install: composer selfupdate

install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; composer update symfony/*; fi;
- if [ "$SYMFONY_VERSION" = "" ]; then composer install; fi;

before_script: mkdir -p build/logs

script: vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml

after_script: vendor/bin/coveralls -v
10 changes: 9 additions & 1 deletion README.md
@@ -1,4 +1,7 @@
# LDAP bundle
[![Build Status][ico-build]][link-build]
[![Coverage Status][ico-coverage]][link-coverage]

The bundle extends LDAP authentication of the Symfony LDAP component with the ability to automatically create / fetch users from eg. a database. This enables you to (easily) add LDAP authentication to existing authentication bundles.

## Installation using Composer
Expand Down Expand Up @@ -105,7 +108,7 @@ security:
dn_string: 'uid={username},ou=users,dc=example,dc=com'
```

Adjust the settings within `custom_user_ldap` according to your LDAP configuration.
Adjust the settings within `connect_holland_ldap` according to your LDAP configuration.

## Configuration reference
``` yaml
Expand Down Expand Up @@ -136,3 +139,8 @@ connect_holland_ldap:
filter: '({uid_key}={username})'
```

[ico-build]: https://travis-ci.org/ConnectHolland/ldap-bundle.svg
[ico-coverage]: https://coveralls.io/repos/github/ConnectHolland/ldap-bundle/badge.svg

[link-build]: https://travis-ci.org/ConnectHolland/ldap-bundle
[link-coverage]: https://coveralls.io/github/ConnectHolland/ldap-bundle
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -33,7 +33,8 @@
"matthiasnoback/symfony-dependency-injection-test": "^1.1",
"phpunit/phpunit": "^5.7",
"satooshi/php-coveralls": "^1.0",
"sulu/sulu": "^1.4"
"sulu/sulu": "^1.4",
"symfony/symfony": "^2.8 || ~3.0.0"
},
"config": {
"sort-packages": true
Expand Down

0 comments on commit f5c9bf5

Please sign in to comment.