-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (46 loc) · 1.06 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
language: php
dist: xenial
os: linux
cache:
yarn: true
directories:
- $HOME/.composer/cache/files
- $HOME/symfony-bridge/.phpunit
env:
global:
- PHPUNIT_FLAGS="-v"
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
jobs:
fast_finish: true
include:
- php: 7.4
services:
- mysql
before_install:
- cp env.travis .env
- cp env.travis .env.test
install:
- composer install
- ./bin/phpunit install
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm install
script:
# setting up
- ./bin/console cache:clear --env=test
- ./bin/console doctrine:databa:create --no-interaction --env=test
- ./bin/console doctrine:schema:update --force --env=test
- ./bin/console hautelook:fixtures:load --no-interaction --env=test
# checking & validating
- ./bin/console lint:yaml config --env=test
- ./bin/console lint:twig templates --env=test
- ./bin/console lint:xliff translations --env=test
# testing
- yarn install
- yarn encore prod
- ./bin/phpunit --no-coverage
branches:
only:
- master
- devel