-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
42 lines (27 loc) · 949 Bytes
/
.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
# this is .travis.yml
language: php
php:
#- 7.2
- 7.3
- 7.4
# - 8.0
before_install: echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
install: composer install
#services:
# - mysql
# there may be a better way, but to compel travis-ci to use our test
# config (sqlite) we replace the configuration file.
before_script:
- cp config/autoload/doctrine.test.php config/autoload/doctrine.local.php
- cp config/autoload/local.development.php.dist config/autoload/local.development.php
- cp config/autoload/local.development.php.dist config/autoload/local.testing.php
- cp module/Admin/config/forms.json.dist module/Admin/config/forms.json
- mkdir -p data/log
- mkdir data/mail
- mkdir data/cache
script:
- vendor/bin/phpunit --testdox
# thank you, https://gist.github.com/Pierstoval/5d3101055e9d6a5fc19e
cache:
directories:
- $HOME/.composer/cache