-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
43 lines (38 loc) · 1.5 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
language: php
sudo: false
# Travis can cache content between builds. This speeds up the build process and saves resources.
cache:
yarn: true
directories:
# Cache composer packages so "composer install" is faster.
- $HOME/.composer/cache/files
# Cache the directory where Symfony stores its slightly modified version of PHPUnit.
- ./bin/.phpunit
# Cache the Symfony binary's directory so that it does not have to be reinstalled.
- $HOME/.symfony
php:
- '7.4'
before_install:
- composer self-update
- nvm install 14
install:
- composer install
- yarn install
- yarn run build
- php ./bin/console doctrine:database:drop --force
- php ./bin/console doctrine:database:create
- php ./bin/console doctrine:schema:update --force
- php ./bin/console doctrine:fixtures:load --no-interaction
script:
# this run tests
- php "./vendor/codeception/codeception/codecept" run --steps
# this checks that the YAML config files contain no syntax errors
- php ./bin/console lint:yaml config
# this checks that the Twig template files contain no syntax errors
- php ./bin/console lint:twig templates
# this checks that the XLIFF translations contain no syntax errors
- php ./bin/console lint:xliff translations
# this checks that the application doesn't use dependencies with known security vulnerabilities
- ./bin/console security:check
# this checks that Doctrine's mapping configurations are valid
- ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction