forked from campusdomar/PuMuKIT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (51 loc) · 1.72 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
sudo: false
language: php
dist: trusty
php:
- 7.2
env:
- MONGO_VERSION=stable
services:
- mongodb
addons:
apt:
sources:
- mongodb-3.0-precise
packages:
- mongodb-org-server
- mediainfo
- libav-tools
- libavcodec-extra-54
before_script:
- pecl install -f mongodb-${MONGO_VERSION}
- composer self-update
- php -i
- npm install -g pa11y
- pa11y -V
- composer -V
- composer install
script:
- find src -type f -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
- php bin/console lint:yaml src
- php bin/console lint:yaml app
- php bin/console lint:twig src
- php bin/console lint:twig app
- ./bin/travis_checks/check_var_dumps
- php bin/php-cs-fixer.phar fix src --rules=@Symfony --dry-run -v
- php bin/phpstan.phar analyse -l 1 src
- php bin/phpunit -c app
- php bin/console doctrine:mongodb:schema:create
- php bin/console pumukit:init:repo all --force
# - php bin/console pumukit:init:example --force
- php bin/console server:start
- pa11y -c .pa11y.json http://localhost:8000/
- pa11y -c .pa11y.json http://localhost:8000/series/channel/1.html
- pa11y -c .pa11y.json http://localhost:8000/latestuploads
- pa11y -c .pa11y.json http://localhost:8000/searchmultimediaobjects
- pa11y -c .pa11y.json http://localhost:8000/searchseries
# - pa11y -c .pa11y.json http://localhost:8000/live/595b77640fd60c42008b4567
- pa11y -c .pa11y.json http://localhost:8000/mediateca
- pa11y -c .pa11y.json http://localhost:8000/categories
# - pa11y -c .pa11y.json http://localhost:8000/video/59269ab79833a041008b4576
# - pa11y -c .pa11y.json http://localhost:8000/series/5925a5519833a043008b456c
- php bin/console server:stop