Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于e2e测试的travis上的django Web服务器_Django_Angularjs_Travis Ci - Fatal编程技术网

用于e2e测试的travis上的django Web服务器

用于e2e测试的travis上的django Web服务器,django,angularjs,travis-ci,Django,Angularjs,Travis Ci,一个针对Django/Travis专业人士的快速问题 我想为我的django/angular应用程序在travis上运行一些e2e测试,并通过sauceConnect隧道连接到sauceLabs //travis.yml addons: sauce_connect: true postgresql: "9.3" branches: only: - master - integration_env language: python python:

一个针对Django/Travis专业人士的快速问题

我想为我的django/angular应用程序在travis上运行一些e2e测试,并通过sauceConnect隧道连接到sauceLabs

//travis.yml
    addons:
      sauce_connect: true
      postgresql: "9.3"

branches:
  only:
  - master
  - integration_env

language: python

python:
- '2.7.9'

cache:
  directories:
  - $HOME/virtualenv/python2.7.9/lib/python2.7/site-packages
  - node_modules
  - bower_components

install:
- npm install
- pip install -r requirements.txt
- pip install coverage -U --force-reinstall
- pip install coveralls -U --force-reinstall
- node_modules/protractor/bin/webdriver-manager update


before_script:
- psql -c 'create database travisci;' -U postgres
- pg_restore --no-acl --no-owner -h localhost -U postgres -d travisci demoDB.dump
- python manage.py runserver &

script:
# - grunt karma:sauceTravis

- grunt protractor:sauceLabs
- coverage run --source='.' manage.py test

after_success:
- grunt coveralls:run
- coveralls --merge=coverage/lcov/coveralls.json
我尝试在travis CI环境中运行django Web服务器。在创建数据库后,我在before_脚本中执行此操作

然而,当我尝试pinglocalhost:8000时,我得到了一个“坏网关301”响应。说了些关于肮脏的ssl

如果有人对如何进行调试有任何建议,我将不胜感激

谢谢