forked from modxcms/revolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (28 loc) · 849 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
dist: trusty
sudo: required
language: php
script:
- phpunit --version
- "phpunit -c ./phpunit.xml"
# Set php versions
php:
- 7.3
- 7.2
- 7.1
- 7.0
- 5.6
- nightly
- 5.5
- 5.4
matrix:
allow_failures:
- php: nightly
# database credentials
mysql:
database: revo_test
username: root
encoding: utf8
before_script: 'cd _build/test && ./generateConfigs.sh auto'
before_install:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then curl -sL -o ~/.phpenv/versions/5.5/bin/phpunit https://phar.phpunit.de/phpunit-4.8.phar; chmod +x ~/.phpenv/versions/5.5/bin/phpunit; fi
- if [[ "(7.0 7.1 7.2 7.3 nightly)" =~ $(phpenv version-name) ]]; then curl -sL -o ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar; chmod +x ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit; fi