Replies: 18 comments
-
I think you need to cache the vips build, so just build the vips lib once, then reuse that binary for all your rvm tests. I'll see if I can get the main ruby-vips repo to do this. |
Beta Was this translation helpful? Give feedback.
-
Have you done this for ruby-vips? |
Beta Was this translation helpful? Give feedback.
-
No, but it should be simple. (edit: stupid kb, posted too soon) |
Beta Was this translation helpful? Give feedback.
-
It seems to be working, it's reusing the vips binary now: https://travis-ci.org/jcupitt/ruby-vips/jobs/213787127 https://github.com/jcupitt/ruby-vips/tree/use-travis-containers What do you think? |
Beta Was this translation helpful? Give feedback.
-
I've merged to master, and got php-vips doing this as well. |
Beta Was this translation helpful? Give feedback.
-
Also, I like your thumbnailer. You're right, it should get quicker with |
Beta Was this translation helpful? Give feedback.
-
I like what you did, and I think I improved it a bit. I put all vips specific environment in install file. https://github.com/ioquatix/vips-thumbnail/blob/master/install-vips.sh Invoked using before_script:
- source install-vips.sh |
Beta Was this translation helpful? Give feedback.
-
I'm not sure that will work, will it? The gem will need My idea was to share |
Beta Was this translation helpful? Give feedback.
-
It works. That's why it use As much as possible should be in install-vips.sh, otherwise it's cumbersome to manage |
Beta Was this translation helpful? Give feedback.
-
Ah OK, I hadn't noticed the source, duh. I like having all the config stuff at the top so it's easy to see. And global env vars should be defined in env: global: (imo), it's easy to miss them if they are set elsewhere. I moved some other stuff into |
Beta Was this translation helpful? Give feedback.
-
The only thing I'd be inclined to put in .travis.yml would be things which I'd want to vary on the build matrix, so perhaps:
Everything else should go in |
Beta Was this translation helpful? Give feedback.
-
I thin w.r.t. versions, it would be even better to just write |
Beta Was this translation helpful? Give feedback.
-
I realised something: every single thing that depends on vips, needs to use this script. It's really heavy for travis, and it's really heavy for things which depend on vips. Specifically, each project needs to:
What we should do is try to get a decent version of vips added to travis whitelist. @BanzaiMan just wondering if you are able to provide some advice here. I'll try to kick off the whitelist process. @jcupitt is there a debian/ubuntu package for libvips? Is it up to date? |
Beta Was this translation helpful? Give feedback.
-
Is this the current package for trusty ubuntu? http://packages.ubuntu.com/trusty/libvips-dev - It seems a bit old. We need to follow the procedure here: https://github.com/travis-ci/apt-package-whitelist I take it the package we want is libvips-dev? |
Beta Was this translation helpful? Give feedback.
-
There is a more recent package here: https://launchpad.net/ubuntu/+source/vips/8.4.5-1 perhaps we can use a PPA to get the latest versions of the packages available on Travis? |
Beta Was this translation helpful? Give feedback.
-
Hi, sure, a PPA would be great. There have been quite a few attempts to get vips whitelisted for travis, I guess you've seen. For example: travis-ci/apt-source-safelist#68 And many others. |
Beta Was this translation helpful? Give feedback.
-
That's odd, when I searched for it I didn't get any results. It's almost like there are too many open issues. There is a PR here: travis-ci/apt-source-safelist#137 but it's a bit out of date now. |
Beta Was this translation helpful? Give feedback.
-
You could also pupload travis compatible linux binaries to an S3 bucket and use that for builds. The build could either be a tarball unpacked to a local directory with all the dependencies or a deb-package that still requires the dependencies like libpng to be installed in the system. |
Beta Was this translation helpful? Give feedback.
-
I've implemented https://travis-ci.org/ioquatix/vips-thumbnail which includes travis tests.
The build time on travis is pretty horrendous. Is there something we can do to improve this? Precompiled binaries? Also, is it possible to install without sudo? That also improves performance a bit.
Beta Was this translation helpful? Give feedback.
All reactions