-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
46 lines (42 loc) · 1.18 KB
/
circle.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
machine:
timezone:
Europe/Zaporozhye
pre:
- sudo apt-get update; USE_PRECOMPILE=true sudo -E circleci-install php 7.1.0
php:
version: 7.1.0
node:
version: 4.2.6
checkout:
post:
- cp ./data/circleci/parameters.yml ./app/config/parameters.yml
- cp ./data/circleci/behat.yml ./behat.yml
- cp ./phpunit.xml{.dist,}
dependencies:
pre:
- echo "date.timezone = Europe/Zaporozhye" >> /opt/circleci/php/7.1.0/etc/php.ini
cache_directories:
- vendor
- bin
- web/bower_vendor
override:
- npm install -g bower
- npm install -g uglifycss
- npm install -g uglify-js
- composer install --no-interaction
- bower install
- bin/console assetic:dump -e test --no-debug
database:
override:
- bin/console doctrine:database:drop -e test --no-interaction --force
- bin/console doctrine:database:create -e test --no-interaction
- bin/console doctrine:migrations:migrate -e test --no-interaction
- bin/console doctrine:fixtures:load -e test --no-interaction
test:
pre:
- chmod -R 777 var/cache
- chmod -R 777 var/logs
override:
- bin/php-cs-fixer fix --dry-run --diff
- bin/phpunit
- bin/behat @TestBundle