Hi there,
I’m struggling to solve this one. At the end of my config, I have:
- run:
command: |
pipenv run "make collectstatic"
pipenv run "make detect-migrations"
pipenv run "make test"
And this is exactly where my job is failing:
#!/bin/bash -eo pipefail pipenv run “make collectstatic” pipenv run “make detect-migrations” pipenv run “make test”
Error: the command make collectstatic could not be found within PATH or Pipfile’s [scripts]. Exited with code 1
Any ideas on what may be causing this?
Here’s my full config file:
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.6
environment:
PIPENV_VENV_IN_PROJECT: true
DATABASE_URL: postgresql://root@localhost/circle_test?sslmode=disable
- image: circleci/postgres:10.3
environment:
POSTGRES_USER: root
POSTGRES_DB: circle_test
steps:
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages
- restore_cache:
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
- run:
command: |
sudo pip install pipenv
pipenv install --dev
- save_cache:
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
paths:
- ".venv"
- "/usr/local/bin"
- "/usr/local/lib/python3.6/site-packages"
- run:
command: |
pipenv run "make collectstatic"
pipenv run "make detect-migrations"
pipenv run "make test"