-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
45 lines (45 loc) · 1.37 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
machine:
node:
version: 6.9.5
php:
version: 7.0.11
timezone:
Asia/Singapore
environment:
BILLORG_TEST_DB_URL: mysql://homestead:secret@127.0.0.1:3306/billorg_testing
database:
override:
- >
mysql -u ubuntu circle_test -e
"CREATE DATABASE billorg_testing;
CREATE USER 'homestead'@'%' IDENTIFIED BY 'secret';
GRANT ALL PRIVILEGES ON *.* TO 'homestead'@'%' WITH GRANT OPTION;"
dependencies:
pre:
- yes "" | pecl install imagick
- echo "extension=imagick.so" > /opt/circleci/php/$(phpenv global)/etc/conf.d/imagick.ini
#- sudo apt-get update && sudo apt-get install php5-imagick && sudo php5enmod imagick
# - sudo apt-get --reinstall install libept1.4.12
# - sudo apt-get install -y aptitude
# - sudo aptitude -y install imagemagick
# - sudo aptitude -y install libmagickcore-dev
# - sudo aptitude -y install libmagickwand-dev
# - sudo aptitude -y install php-imagick
override:
- npm install
- composer install
- composer update
compile:
override:
- npm run production
deployment:
staging:
branch: master
heroku:
appname: billorg
test:
post:
- vendor/bin/test-reporter --stdout > codeclimate.json
- "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H
'User-Agent: Code Climate (PHP Test Reporter v0.1.1)'
https://codeclimate.com/test_reports"