-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
27 lines (23 loc) · 985 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
language: php
php:
- "7.4.8"
services:
- mysql
install:
- wget https://get.symfony.com/cli/installer -O - | bash
- export PATH="$HOME/.symfony/bin:$PATH"
- composer install --no-interaction
- echo "USE mysql;\nSET PASSWORD FOR 'root'@'localhost' = PASSWORD('${MYSQL_PASSWORD}');\nFLUSH PRIVILEGES;\n" | mysql -u root
- echo "DATABASE_URL=mysql://root:${MYSQL_PASSWORD}@127.0.0.1:3306/${DATABASE_NAME}" >> .env
- echo "MAILER_URL=null://localhost" >> .env
- echo "database_url=\"mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@127.0.0.1:3306/${DATABASE_NAME}\"" >> .env
- echo "DATABASE_URL=\"mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@127.0.0.1:3306/${DATABASE_NAME}\"" >> .env.test
- echo "MAILER_URL=null://localhost" >> .env.test
- cat .env 2>/dev/null
- cat .env.test 2>/dev/null
- cat phpunit.xml.dist
- sleep 5
- ./bin/console doctrine:database:create
- ./bin/console doctrine:migration:migrate --no-interaction
script:
- ./vendor/bin/simple-phpunit