I am using Travis CI to test and build my project and as part of it I want travis to run grunt build
i have tried the following but have had no luck.
My .travis.yml looks like this:
It runs much faster than npm
as NodeJS
package manager, I'm using Yarn
on this example. It installs yarn
, grunt cli
, ruby
and sass
.
Hopefully it helps.
language: node_js
node_js:
- "7.1.0"
before_install:
- npm install -g yarn
- yarn add global ruby
- gem install sass
install:
- yarn add global sass
- yarn add global grunt-cli
- yarn add yarn install
before_script: grunt