无法检出CircleCI2.0中的working_directory

时间:2018-09-03 05:44:03

标签: python circleci

我的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安装?

0 个答案:

没有答案