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

后端 未结 2 508
隐瞒了意图╮
隐瞒了意图╮ 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: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.

提交回复
热议问题