How to write .travis.yml if my project deps on python and nodejs?

后端 未结 2 507
隐瞒了意图╮
隐瞒了意图╮ 2021-01-18 11:10

My project includes some python codes and build with grunt.I write .travis.yml like:

language: node_js
before_install:
  - pip inst         


        
相关标签:
2条回答
  • 2021-01-18 11:34

    It's kind of solved.A sudo must be prepend to 'pip install'.

    I guess 'npm install -g grunt-cli' does not need sudo because it's a 'node_js' project.Right?

    0 讨论(0)
  • 2021-01-18 11:51

    Instead of using sudo, pass the --user flag into pip (e.g., pip install --user django) to install the package in the home directory. This approach also works in Travis’ container-based infrastructure, which disallows sudo.

    0 讨论(0)
提交回复
热议问题