-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
46 lines (40 loc) · 1.27 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
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:
- php: 7.0
- php: 7.0
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
- php: 7.0
env: RUN_PHPCS="yes"
- 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: 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:
- 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;