我的config.yml是这样的:
version: 2
jobs:
build:
machine: true
working_directory: ~/organization_name/repo/api
parallelism: 1
shell: /bin/bash --login
steps:
- checkout
- run: mkdir -p /tmp/circleci-artifacts /tmp/circleci-test-results
# Add app engine sdk to pythonpath for local unit tests.
- run: echo 'export PYTHONPATH="$HOME/google_appengine:$HOME/google_appengine/lib/yaml/lib"' >> $BASH_ENV
- run: if [ -e requirements.txt ]; then pip install -r requirements.txt; else pip install -r requirements.pip; fi
在run: if [ -e requirements.txt ]; then pip install -r requirements.txt; else pip install -r requirements.pip; fi
中,显示为Could not open requirements file: [Errno 2] No such file or directory: 'requirements.pip'
。
requirements.txt
存在于~/organization_name/repo/api
中,但似乎没有检出到目录。
如何在api/
中执行pip安装?