【发布时间】:2014-04-06 09:58:00
【问题描述】:
我有这个 travis 配置:
language: python
services:
- postgresql
python:
- "2.7"
- "2.6"
env:
- DJANGO="django==1.6.2"
branches:
only:
- master
# command to install requirements
install:
- pip install $DJANGO
- pip install -r requirements.txt --use-mirrors
- pip install -r networking_requirements.txt --use-mirrors
- pip install coverage coveralls --use-mirrors
- python setup.py install
before_script:
- psql template1 -c 'CREATE EXTENSION hstore;'
- psql -U postgres -c 'CREATE DATABASE nodeshot_travis;'
- psql -U postgres -d nodeshot_travis -c "CREATE EXTENSION postgis;"
- psql -U postgres -d nodeshot_travis -c "CREATE EXTENSION postgis_topology;"
- cd tests
- python manage.py syncdb --noinput
- python manage.py migrate --noinput
- python manage.py runserver 0.0.0.0:8000 &
# command to run tests, e.g. python setup.py test
script:
- coverage run --source=nodeshot runtests.py
after_success:
coveralls
成功后我想升级现有的测试服务器(一个或多个)。
我不太明白怎么做。实现此目的最常见的方法是什么?
【问题讨论】:
标签: django continuous-integration travis-ci continuous-deployment