-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 1.12 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
# Travis CI provides several PHP versions, all of which include XDebug and PHPUnit. Travis CI uses phpenv to manage the different PHP versions installed on the virtual machines.
# Project language
dist: trusty
sudo: false
language: php
php:
- '7.3'
matrix:
allow_failures:
- php:
- '7.3'
fast_finish: false
# Cache composer packages so "composer install" is faster
cache:
directories:
- $HOME/.composer/cache/files
before_script:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- curl -sSfL -o ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
- composer self-update
- composer install --prefer-source --no-interaction --dev
# Install composer dependencies,
install:
- rm composer.lock
- travis_retry composer update --prefer-dist
# Commands you want to run that will verify your build.
script:
- ./vendor/bin/phpunit --configuration phpunit.xml.dist
after_success:
# Upload coverage data to codecov
- codecov
deploy:
provider: pages
skip_cleanup: true
keep_history: true
on:
branch: dev-ci