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
Decrease Travis CI build duration #132
Conversation
Maybe create a dedicated repo and clone it during travis setup will better. |
@wysman That's an elegant solution. How does php-zmq-travis-support sound? |
sound good ;) |
or zmq-travis-support, it's not php specific |
* Try and build against the pre-built version of ØMQ, which are stored in a separate support repo[0] * If there isn't a matching pre-build version of ØMQ, then download and build it as before * Fork the run-tests.sh script to travis/script.sh to make it clear that the Travis CI build is distinct [0] https://github.com/phuedx/php-zmq-travis-support
|
Also, if you're happy with the style changes that made to |
On the other hand, I could simply remove |
Looks good to me and the build passes |
Decrease Travis CI build duration
@mkoppanen Do you want to take control of phuedx/php-zmq-travis-support? |
I just read that travis can cache a specific folder between run. http://docs.travis-ci.com/user/caching/#Arbitrary-directories |
@wysman That's a great find! That gets rid of the dependency on the external repo while keeping the build time down. |
And it's avoid to host binary on Github ! |
By building against a pre-built version of ØMQ we can dramatically reduce the Travis CI build duration at the cost of increasing the size of the repo. The following is from the email I received about the latest build of phuedx/php-zmq:
As for the increase in size of the repo:
du -sm /path/to/php-zmq/travis/
reports that thetravis
directory is 79 MB butgit clone https://url/of/php-zmq
reports that it receives 13.19 MB of compressed objects in total.Alternatively, we could always reduce the size of the Travis CI build matrix…