forked from football-betting/symfony4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
39 lines (30 loc) · 902 Bytes
/
.travis.yml
File metadata and controls
39 lines (30 loc) · 902 Bytes
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
# 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
php:
- 7.2
# Define an environment variable
env:
- SYMFONY_VERSION="4.1.*" DB=mysql
git:
depth: 1
before_script:
- mysql -uroot -e "CREATE USER 'docker'@'%' IDENTIFIED BY 'docker'"
- mysql -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'docker'@'%' WITH GRANT OPTION"
- mysql -uroot -e "FLUSH PRIVILEGES"
- travis_retry composer self-update
- travis_retry composer install --dev --no-interaction
script:
- php bin/console doctrine:database:create --no-interaction
- php bin/console doctrine:migrations:migrate --no-interaction
- php bin/phpunit --coverage-clover=clover.xml
after_script:
- bash <(curl -s https://codecov.io/bash)