forked from modxcms/revolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 854 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
dist: trusty
sudo: required
language: php
script:
- phpunit --version
- "phpunit -c ./phpunit.xml"
# Set php versions
php:
- 7.1
- 7.0
- 5.6
- nightly
- 5.5
- 5.4
# - 5.3
- hhvm
matrix:
allow_failures:
- php: nightly
- php: hhvm
# database credentials
mysql:
database: revo_test
username: root
encoding: utf8
before_script: 'cd _build/test && ./generateConfigs.sh'
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 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