graphicsmagick on travis build machine

456 Views Asked by At

Our unit tests require that we invoke gm (graphicsmagick) library and the package gets built by travis. I was wondering if there is any easier way to install graphicsmagick when the package starts to build:

My .travis.yml looks like:

language: node_js
node_js:
- '0.11'
before_install:
- npm install -g grunt-cli
install:
- npm install
- grunt precheck
after_success:
- npm test
- sh ./scripts/package.sh

Is adding it in before_install a good solution? If yes, what would be the easiest way to install the lib?

Thanks

1

There are 1 best solutions below

0
On

Just use apt-get to do the install of the package you need.

before_install
- sudo apt-get install graphicsmagick

NOTE: if you need a new/specific version, you may need to install the PPA first.