This repository has been archived by the owner on May 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (45 loc) · 1.54 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
55
language: php
dist: precise
sudo: true
php:
- 7.0
services:
- mysql
git:
submodules: false
cache:
directories:
- $HOME/.composer/cache
- node_modules
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- bash .travis.install-mysql-5.7.sh
- nvm install 6
- nvm use 6
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn install --non-interactive --prefer-offline
- npm rebuild node-sass # patch for Error: ENOENT: no such file or directory, scandir '**/node_modules/node-sass/vendor' https://github.com/sass/node-sass/issues/1579
- phpenv config-rm xdebug.ini
- cp app/config/parameters.yml.dist app/config/parameters.yml
- composer self-update
- composer install --no-interaction --prefer-dist
- app/console doctrine:database:create --env=test --no-interaction --quiet
- app/console doctrine:migrations:migrate --env=test --no-interaction --quiet
- app/console cache:warmup --env=test --quiet
script:
- app/console security:check --end-point=http://security.sensiolabs.org/check_lock
- app/console lint:yaml @AppBundle
- app/console lint:twig app/Resources
- app/console lint:yaml app/config
- app/console doctrine:schema:validate --env=test
- ./bin/phpunit -c app/
- ./bin/php-cs-fixer fix --diff --dry-run ./src/AppBundle/
- npm run eslint
- npm run single-run-karma
- npm run jest
notifications:
email: false