forked from joomla-framework/ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (49 loc) · 1.55 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: php
sudo: false
dist: trusty
addons:
apt_packages:
- ldap-utils
- slapd
env:
global:
- RUN_PHPCS="no"
- COMPOSER_FLAGS="--prefer-stable"
matrix:
fast_finish: true
include:
# The Trusty build does not support PHP 5.3
- php: 5.3
dist: precise
- php: 5.3
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
dist: precise
- php: 5.4
- php: 5.5
- php: 5.6
env: RUN_PHPCS="yes"
- php: 7.0
- php: 7.1
- php: 7.1
# This empty flag removes the prefer-stable switch to cause dev dependencies to be installed
env: COMPOSER_FLAGS=""
- php: 7.2
- php: 7.3
- php: nightly
allow_failures:
- php: nightly
before_install:
- mkdir /tmp/slapd
- slapd -f .travis/ldap/conf/slapd.conf -h ldap://localhost:3389 &
# This sleep is required to ensure the slapd process is running before loading the data in
- sleep 3
- ldapadd -h localhost:3389 -D cn=admin,dc=joomla,dc=org -w joomla -f .travis/ldap/data/base.ldif
- ldapadd -h localhost:3389 -D cn=admin,dc=joomla,dc=org -w joomla -f .travis/ldap/data/fixtures.ldif
before_script:
# The Trusty build is compiled with LDAP support
- if [[ $TRAVIS_PHP_VERSION = 5.3 ]]; then phpenv config-add .travis/phpenv/ldap.ini; fi
- composer self-update
- composer update $COMPOSER_FLAGS
script:
- vendor/bin/phpunit
- if [ "$RUN_PHPCS" == "yes" ]; then vendor/bin/phpcs --config-set installed_paths vendor/joomla/coding-standards && vendor/bin/phpcs -p --report=full --extensions=php --standard=ruleset.xml src/; fi;