在travis CI中进行django测试

时间:2016-10-06 11:22:08

标签: postgresql travis-ci

我有一个使用travis CI的django项目

当我检查travis CI中的pep8时

没有问题

我想在travis CI中测试functional_test

我在.travis.yml

中插入代码

.travis.yml (hggg是我的django项目数据库中的角色名称)

language: python

python:
    - "3.5.1"

install: 
    - pip install -r requirement/development.txt

before_script:
    - createuser hggg

# # command to run tests
script:
    - pep8
    - python wef/manage.py test functional_test

但是当构建开始时

travis服务器无法创建数据库

The command "pep8" exited with 0.
$ python wef/manage.py test users
Creating test database for alias 'default'...
Got an error creating the test database: permission denied to create database
Type 'yes' if you would like to try deleting the test database 'test_bookconnect', or 'no' to cancel: 

No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated

我想在trvis CI中创建一个数据库( postgresql

请给我一些建议

0 个答案:

没有答案