pyvips icon indicating copy to clipboard operation
pyvips copied to clipboard

Travis CI testing

Open thomaslchan opened this issue 6 years ago • 3 comments

Is there any easy way to link vips and pyvips on Travis CI? I'm installing both on Travis (installing vips and python3 with brew and pyvips with pip), but am getting two errors:

  • OSError: cannot load library 'libgobject-2.0.dylib': dlopen(libgobject-2.0.dylib, 2): image not found. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libgobject-2.0.dylib'
  • import _libvips ModuleNotFoundError: No module named '_libvips'

thomaslchan avatar Jul 29 '19 15:07 thomaslchan

Hello @thomaslchan, yes, libvips itself does this:

https://github.com/libvips/libvips/blob/master/.travis.yml

The libvips test suite is run on every commit, and that's implemented in pyvips.

jcupitt avatar Jul 29 '19 15:07 jcupitt

It seems this is building libvips from the ground up; I would have to include the libvip files in my own repository for building.

I've successfully installed vips and pyvips on Travis with brew and pip, respectfully. Is there a way to link them on Travis?

thomaslchan avatar Jul 30 '19 02:07 thomaslchan

pyvips does it like this:

https://github.com/libvips/pyvips/blob/master/.travis.yml

So it caches the libvips build.

jcupitt avatar Jul 30 '19 14:07 jcupitt