-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.travis.yml
41 lines (34 loc) · 1.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: php
php:
# - 5.6
# - 7.0
- 7.2
- 7.3
- 7.4
services:
- mysql
- mongodb
addons:
apt:
packages:
- ldap-utils
- slapd
before_install:
# - echo "extension=ldap.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- mysql -e 'create database auth;'
- mysql -e 'create database p_auth;'
install:
- composer require php-coveralls/php-coveralls
- nvm install stable
before_script:
- mkdir -p build/logs
- mkdir /tmp/slapd
- slapd -f tests/travis/LDAP/slapd.conf -h ldap://localhost:3389 &
- sleep 3
- ldapadd -h localhost:3389 -D cn=admin,dc=example,dc=com -w test -f tests/travis/LDAP/base.ldif
- ldapadd -h localhost:3389 -D cn=admin,dc=example,dc=com -w test -f tests/travis/LDAP/user.ldif
- ldapadd -h localhost:3389 -D cn=admin,dc=example,dc=com -w test -f tests/travis/LDAP/INITIAL_TESTDATA.ldif
script:
- vendor/bin/phpunit -c phpunit_travis.xml --coverage-clover build/logs/clover.xml
after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/php-coveralls -v; fi;'