-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
66 lines (53 loc) · 1.49 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Project language
language: php
# Allows use container-based infrastructure
sudo: false
# Start mysql service
#services:
# - mysql
# Cache composer packages so "composer install" is faster
cache:
directories:
- $HOME/.composer/cache/files
# git stuff
git:
submodules: false
branches:
only:
- master
- develop
# Matrix to test in every php version
matrix:
# Fast finish allows to set the build as "finished" even if the "allow_failures" matrix elements are not finished yet.
fast_finish: true
include:
- php: 7.2
- php: 7.3
- php: 7.1
allow_failures:
- php: 7.1
# Define an environment variable
env:
- CODECOV_TOKEN="a7f6927a-c3ce-4eaf-966e-370a1cf70b25"
- TRUC_VERSION="1" DB=msql
# Update composer
before-install:
- composer self-update
# Install composer dependencies,
# Create database, schema and fixtures
install:
- 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
before_script:
- composer install --dev --quiet --no-interaction
- echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash)
# After a build, send email notification with the build results
notifications:
email: false