Python TravicCI build dont find Managa.py[Django]命令
我正在学习一个教程和一个完全的新手。 在本教程中,导师使用docker作为虚拟环境,由于我目前使用的是我的Win-10-Home机器,所以我决定使用普通的'olPython TravicCI build dont find Managa.py[Django]命令,python,django,travis-ci,Python,Django,Travis Ci,我正在学习一个教程和一个完全的新手。 在本教程中,导师使用docker作为虚拟环境,由于我目前使用的是我的Win-10-Home机器,所以我决定使用普通的'olpython venv 出于某种原因,TravicCI没有修改我的manage.py命令,我不知道为什么 这是TCI日志 0.58s$ git clone --depth=50 --branch=master https://github.com/therealgenish/recipe-app-api.git therealgenis
python venv
出于某种原因,TravicCI没有修改我的manage.py命令,我不知道为什么
这是TCI日志
0.58s$ git clone --depth=50 --branch=master https://github.com/therealgenish/recipe-app-api.git therealgenish/recipe-app-api
$ source ~/virtualenv/python3.6/bin/activate
$ python --version
Python 3.6.7
$ pip --version
pip 19.0.3 from /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/pip (python 3.6)
install
$ pip install -r requirments.txt
$ app\manage.py test && flake8
appmanage.py: command not found
The command "app\manage.py test && flake8" exited with 127.
Done. Your build exited with 1.
之所以它是app\manage.py
而不是manage.py
,是因为它在app文件夹之外,所以我想
.travis.yaml
:
language: python
python:
- 3.6
install:
- pip install -r requirments.txt
script:
- app\manage.py test && flake8
还有一个试试看
$ cd app/ && python manage.py test && flake8
因为您首先需要使用
manage.py
文件导航到应用程序。原来是一个简单的语法问题
--travis需要帮助了解manage.py
文件的位置
解决方案:
脚本:
-cd-app/&&python-manage.py测试&flake 8
尝试正斜杠-app/manage.py