This is a basic continuous integration server, designed for GitHub and GitLab.
The program use together with https://github.com/yi-ge/ci-web or http://git.oschina.net/yi-ge/ci-web.
The System is tested under Python 3.6.2.
To install globally with pip (if you have pip 1.3 or greater installed globally):
$ [sudo] pip install virtualenv virtualenvwrapper
It will probably install virtualenv on your system. Maybe it's even in your package manager.
If you use Ubuntu, try:
$ sudo apt-get install python-virtualenv virtualenvwrapper
Add three lines to your shell startup file (MAC in ~/.bash_profile
, Ubuntu in ~/.bashrc
, etc.) to set the location where the virtual environments should live, the location of your development project directories, and the location of the script installed with this package:
export WORKON_HOME=$HOME/WorkStation
export VIRTUALENVWRAPPER_PYTHON=`which python`
mkdir -p $WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh
After editing it, reload the startup file (e.g., run source ~/.bashrc
).
You can use:
workon # list virtual environment
workon XXX # enter virtual environment
mkvirtualenv XXX # set up virtual environment
deactivate # leave virtual environment
rmvirtualenv XXX # delete virtual environment
Ps:You may try p or pyenv. It is important that p
does not support to manage pip
.
Pipenv: Sacred Marriage of Pipfile, Pip, & Virtualenv.
$ pip install --user pipenv
or
$ mkvirtualenv -p python3 ci
$ pip install pipenv
$ pipenv install
$ python db.py db init
$ python db.py db migrate
$ python db.py db upgrade
Delete migrations
before python db.py db init
.
$ python run.py
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。