-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
51 lines (42 loc) · 1.28 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
language: php
dist: xenial
services:
- mysql
addons:
chrome: stable
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
cache:
directories:
- $HOME/.composer/cache/files
- ./bin/.phpunit
php:
- '7.4'
before_install:
- chromium --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
install:
- composer clearcache
- composer install
- ./bin/phpunit install
- yarn install
- yarn encore dev
before_script:
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('secret_test') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade -u root -psecret_test
- sudo service mysql restart
- ./bin/console doctrine:database:create
- ./bin/console doctrine:schema:create
- ./bin/console hautelook:fixtures:load --no-interaction --no-debug
script:
# run tests
- ./bin/phpunit
# this checks that the YAML config files contain no syntax errors
- ./bin/console lint:yaml config
# this checks that the Twig template files contain no syntax errors
- ./bin/console lint:twig templates
# this checks that Doctrine's mapping configurations are valid
- ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction