Run grunt build command on Travis CI

前端 未结 4 1658
不思量自难忘°
不思量自难忘° 2021-01-30 20:29

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.

4条回答
  •  自闭症患者
    2021-01-30 21:22

    You likely miss in your travis.yml file:

    before_script:
      - npm install -g grunt-cli
    

    Then "grunt whatever" should execute ok (assuming you do require grunt in your devDependencies in your package.json).

    (see http://www.mattgoldspink.co.uk/2013/02/10/using-travis-ci-with-grunt-0-4-x/)

提交回复
热议问题