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
Just use
apt-get
to do the install of the package you need.NOTE: if you need a new/specific version, you may need to install the PPA first.