My project includes some python codes and build with grunt.I write .travis.yml like:
language: node_js
before_install:
- pip install Django
- npm install -g grunt-cli
- npm uninstall grunt # https://github.com/npm/npm/issues/3958
node_js:
- "0.10"
python:
- "2.7"
But that failed: *
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Django-1.7.1.dist-info'
*
It seems like I cannot 'pip install' in a 'node_js' project.
travis. yml , which is a YAML format text file, to the root directory of the repository. This file specifies the programming language used, the desired building and testing environment (including dependencies which must be installed before the software can be built and tested), and various other parameters.
If you're not familiar with Travis CI, it's a build company that has been powering the continuous integration (CI) of many open source projects since it launched in 2011. It was the first build solution that was free for open source use and that easily integrated into GitHub.
Travis CI is a cloud-based CI service that builds and tests your projects hosted on GitHub. It would trigger a build process to validate the build and report any failures for every commit made. It fetches the commands from a . travis.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With