1 Star 1 Fork 0

yige / Continuous Integration System

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Continuous Integration System

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.

Python Versions

The System is tested under Python 3.6.2.

Installing

Virtualenv And Virtualenvwrapper (Option)

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.

Install Pipenv

Pipenv: Sacred Marriage of Pipfile, Pip, & Virtualenv.

$ pip install --user pipenv

or

$ mkvirtualenv -p python3 ci
$ pip install pipenv

Installation Dependency and Init Database

$ 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.

Run Server

$ python run.py
MIT License Copyright (c) 2017 轶哥 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Fork on https://github.com/yi-ge/ci.git 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/yi-ge/ci.git
git@gitee.com:yi-ge/ci.git
yi-ge
ci
Continuous Integration System
master

搜索帮助