-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
42 lines (35 loc) · 954 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
35
36
37
38
39
40
41
42
# 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
# 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: 5.6
- php: 7.0
- php: 7.1
- php: hhvm
allow_failures:
- php: hhvm
# Define an environment variable
env:
- SYMFONY_VERSION="2.8.*" DB=mysql
# 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 app/console doctrine:database:create --env=test
- php app/console doctrine:schema:create --env=test