-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
30 lines (27 loc) · 835 Bytes
/
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
machine:
timezone: UTC
php:
version: 5.6.2
dependencies:
pre:
# Enable xdebug
- sed -i 's/^;//' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini
# Disable phar.readonly
- sed -i 's/^;phar.readonly/phar.readonly/' ~/.phpenv/versions/$(phpenv global)/etc/php.ini
- sed -i 's/phar.readonly\s=\sOn/phar.readonly = Off/' ~/.phpenv/versions/$(phpenv global)/etc/php.ini
# Make directories for Box phar builder
- mkdir build
- mkdir $CIRCLE_ARTIFACTS/build
test:
override:
- phpunit --coverage-html $CIRCLE_ARTIFACTS/coverage
deployment:
build_phar:
branch: master
commands:
- >
vendor/bin/box build &&
echo Build Complete! &&
echo Moving Artifacts... &&
mv build/request-parser.phar $CIRCLE_ARTIFACTS/build/ &&
echo Complete!