forked from MediaArea/MediaArea-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (40 loc) · 1.3 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
language: php
php:
- '7.0'
- '7.1'
- '7.2'
- nightly
dist: trusty
sudo: false
matrix:
allow_failures:
- php: nightly
services:
- mysql
git:
depth: 3
cache:
directories:
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini || true
- cp app/config/parameters.yml.travis app/config/parameters.yml
- mysql -e 'CREATE DATABASE IF NOT EXISTS travis;'
install:
- travis_retry composer require --dev friendsofphp/php-cs-fixer phpmd/phpmd --prefer-dist --no-suggest --ansi
- php bin/console doctrine:database:create --env=test --if-not-exists
- php bin/console doctrine:migrations:migrate --no-interaction
- php bin/console doctrine:fixtures:load --env=test --no-interaction
- php bin/console mediaarea:user:donor [email protected] 1
- php bin/console fos:user:create beta [email protected] betaTravis
- php bin/console fos:user:promote beta ROLE_BETA
- php bin/console mediaarea:user:donor [email protected] 30
script:
- ./vendor/bin/simple-phpunit -v
- vendor/bin/php-cs-fixer --dry-run --stop-on-violation --using-cache=no fix src/
- vendor/bin/phpmd src/ text phpmd.xml
- php bin/console lint:twig app/ src/
- php bin/console lint:xliff src/
- php bin/console lint:xliff app/
- php bin/console lint:yaml src/
- php bin/console lint:yaml app/