-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
52 lines (44 loc) · 1.19 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
# Forces new Travis-CI Infrastructure
language: php
# Allows use container-based infrastructure
sudo: false
env:
global:
- RUN_UNIT_TESTS="yes"
- INSTALL_MEMCACHE="yes"
- INSTALL_MEMCACHED="yes"
- INSTALL_REDIS="yes"
- RUN_PHPCS="yes"
- RUN_UNIT_TESTS="no"
matrix:
fast_finish: true
include:
- php: 8.1
- php: 8.2
- php: hhvm
env: INSTALL_APCU="yes" INSTALL_MEMCACHE="no"
allow_failures:
- php: hhvm
before_script:
#- phpenv config-rm xdebug.ini
# Make sure all dev dependencies are installed
- composer self-update
- composer install --prefer-source --no-interaction --dev
# Start mysql service
#services:
# - mysql
## Cache composer and apt downloads.
cache:
apt: true
directories:
# Cache directory for older Composer versions.
- $HOME/.composer/cache/files
# Cache directory for more recent Composer versions.
- $HOME/.cache/composer/files
script:
# Run PHPCS.
- if [[ $RUN_PHPCS == "yes" ]]; then libraries/vendor/bin/phpcs . --standard=./build/psr12/ruleset.xml; fi
- if [[ $RUN_UNIT_TESTS == "yes" ]]; then libraries/vendor/bin/phpunit --configuration travisci-phpunit.xml; fi
branches:
except:
- JBSM6.2