-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.sample.yml
87 lines (75 loc) · 2.43 KB
/
.travis.sample.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# 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
# Versions of PHP you want your project run with.
php:
# - '5.4'
# - 5.6
# - 7.0
- 7.3
- 7.4snapshot
- hhvm # on Trusty only
# - nightly
# - hhvm-nightly
# Commands to be run before your environment runs.
# Please note that if you want to run PHPUnit on HHVM, you have to explicitly install version 5.7 in your .travis.yml due to a compatibility issue between HHVM and PHP7.
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,
# Create database, schema and fixtures
install:
- rm composer.lock
- travis_retry composer update --prefer-dist
# - composer install
# - cp app/config/parameters.yml.dist app/config/parameters.yml
# - php bin/console doctrine:database:create --env=test
# - php bin/console doctrine:schema:create --env=test
# - php bin/console doctrine:fixtures:load -n --env=test
# allow_failures: Allow this build to fail under the specified environments.
# fast_finish: If your build fails do not continue trying to build, just stop.
matrix:
allow_failures:
- php:
- hhvm
- 7.4snapshot
fast_finish: false
# Start mysql service
services:
- mysql
env:
- DB=sqlite
- DB=mysql
- DB=pgsql
# Cache composer packages so "composer install" is faster
cache:
directories:
- $HOME/.composer/cache/files
# Commands you want to run that will verify your build.
script:
- phpunit --coverage-text
after_success:
# Upload coverage data to codecov
- codecov
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
on:
branch: master
# After a build, send email notification with the build results
notifications:
on_success: never
on_failure: always
# irc:
# channels: "irc.freenode.org#xxxxx"
# template:
# - "%{repository_name}@%{branch}: %{message} (%{build_url})"
# on_success: change
# on_failure: change
email: skeptycal@gmail.com