-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathcircle.yml
executable file
·51 lines (47 loc) · 1.32 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
47
48
49
50
51
machine:
php:
version: 5.5.11
ruby:
version: 2.0.0-p247
timezone: Asia/Tokyo
general:
artifacts:
- "app/reports"
dependencies:
post:
- chmod 755 ./app/Console/cake
- echo "<?php
class DATABASE_CONFIG {
public \$default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => '127.0.0.1',
'login' => 'ubuntu',
'password' => '',
'database' => 'circle',
'prefix' => ''
);
public \$test = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => '127.0.0.1',
'login' => 'ubuntu',
'password' => '',
'database' => 'circle_test',
'prefix' => ''
);
}" > app/Config/database.php
- echo "create database circle" | mysql -u root
- ./app/Console/cake Migrations.migration run all
- ./app/Console/cake Migrations.migration run all -p Tags
test:
override:
- ./app/Console/cake test --log-junit app/reports/unittest.xml app AllTests
post:
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit/
- find . -type f -regex "./app/reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/phpunit/ \;
deployment:
production:
branch: production
commands:
- sh script/deploy_production.sh