-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
32 lines (28 loc) · 1.16 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
language: php
php:
- 7
script:
- composer lint-yml
- composer lint-twig
- composer test
- php bin/console doctrine:schema:validate --env=test
before_install:
- npm install -g grunt-cli
# - sudo mysql -uroot -e "CREATE DATABASE emediatest;"
# - sudo mysql -uroot -e "CREATE USER 'emediatest'@'localhost' IDENTIFIED BY 'emediatest';"
# - sudo mysql -uroot -e "GRANT ALL ON emediatest.* TO 'emediatest'@'localhost'"
- sudo -u postgres psql -c "CREATE USER emedia WITH PASSWORD 'emedia' CREATEDB;"
- sudo -u postgres psql -c "CREATE DATABASE emedia"
- sudo -u postgres psql -c "CREATE USER emediatest WITH PASSWORD 'emediatest' CREATEDB;"
- sudo -u postgres psql -c "CREATE DATABASE emediatest"
install:
- composer install
- composer install-assets
- composer dump-translation
- composer build-assets
- php bin/console doctrine:schema:update --force
- php bin/console doctrine:schema:update --force --env=test
- php bin/console doctrine:migrations:migrate --env=test -n
- php bin/console doctrine:migrations:migrate -n
- php bin/console doctrine:fixtures:load --no-interaction --env=test
- php bin/console doctrine:fixtures:load --no-interaction