Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[travis-ci] Init postgresql in memory storage #11290

Closed
wants to merge 1 commit into from

Conversation

lav45
Copy link
Contributor

@lav45 lav45 commented Apr 6, 2016

Q A
Is bugfix? no
New feature? yes
Breaks BC? no
Tests pass? yes
Fixed issues

When testing you can create test database in a ramfs, which will increase the speed of testing for postgresql.
The speed test increased by 57%
For php 5.4 2.67 min => 1.53 min

@lav45 lav45 changed the title Init postgresql in memory storage [travis-ci]Init postgresql in memory storage Apr 6, 2016
@lav45 lav45 changed the title [travis-ci]Init postgresql in memory storage [travis-ci] Init postgresql in memory storage Apr 6, 2016
@samdark
Copy link
Member

samdark commented Apr 6, 2016

@lav45
Copy link
Contributor Author

lav45 commented Apr 6, 2016

During the first comparison, i used this build https://travis-ci.org/yiisoft/yii2/jobs/121093566
Probably not well chosen

job time
https://travis-ci.org/yiisoft/yii2/jobs/121086475 1.54 minutes
https://travis-ci.org/yiisoft/yii2/jobs/121093566 2.67 minutes
https://travis-ci.org/yiisoft/yii2/jobs/121103076 1.6 minutes
https://travis-ci.org/yiisoft/yii2/jobs/121104468 2.19 minutes
https://travis-ci.org/yiisoft/yii2/jobs/121114853 1.8 minutes

Test on the local PC ~$ phpunit tests/framework/db/pgsql showed accelerated about 2 times

Leave to your discretion

@samdark
Copy link
Member

samdark commented Apr 6, 2016

@cebe, @SilverFire could you check this in your local environments?

@lav45 lav45 closed this Jun 20, 2016
@cebe
Copy link
Member

cebe commented Jun 21, 2016

can be useful for the docker testing environment: yiisoft-contrib/jenkins-test-docker#9

@lav45 lav45 deleted the pgsql_fast_test branch September 15, 2017 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants