update README.md, package.json, full-test

This commit is contained in:
jysperm
2014-11-15 18:51:44 +08:00
parent 6d57ca0463
commit b7006d588e
12 changed files with 23 additions and 23 deletions

View File

@@ -5,15 +5,17 @@ RootPanel 具有良好的设计,高度的可定制性,支持多语言和多
## 安装
稳定版本 [![Build Status](https://travis-ci.org/jysperm/RootPanel.svg?branch=stable)](https://travis-ci.org/jysperm/RootPanel)
稳定版本
[![Build Status](https://travis-ci.org/jysperm/RootPanel.svg?branch=stable)](https://travis-ci.org/jysperm/RootPanel)
git clone -b stable https://github.com/jysperm/RootPanel.git
开发版本 [![Build Status](https://travis-ci.org/jysperm/RootPanel.svg?branch=master)](https://travis-ci.org/jysperm/RootPanel)
开发版本
[![Build Status](https://travis-ci.org/jysperm/RootPanel.svg?branch=master)](https://travis-ci.org/jysperm/RootPanel)
git clone https://github.com/jysperm/RootPanel.git
[Vagrant box](https://vagrantcloud.com/jysperm/boxes/rootpanel)
试运行和开发推荐使用 [Vagrant box](https://vagrantcloud.com/jysperm/boxes/rootpanel)
详细安装说明:[INSTALL.md](https://github.com/jysperm/RootPanel/blob/master/INSTALL.md)
@@ -36,6 +38,9 @@ RootPanel 具有良好的设计,高度的可定制性,支持多语言和多
git pull
根据 `/migration/system` 中新增的说明文件,执行相应命令来修改系统设置,如果跨越多个版本需要依次执行。
检查更新日志和 `/sample` 中的默认配置文件,视情况修改配置文件(`config.coffee`), 若修改了配置文件,需要运行以下命令来应用变更。
npm run reconfigure
使用 `mongodbdump` 来备份数据库,然后升级数据库:

1
bin/reconfigure.coffee Normal file
View File

@@ -0,0 +1 @@
#!/usr/bin/env coffee

View File

@@ -1,8 +1,8 @@
{
"name": "rootpanel",
"version": "0.8.0",
"description": "A linux virtual host management system with extensibility",
"homepage": "http://rpvhost.net",
"description": "A pluggable PaaS framework",
"homepage": "https://rootpanel.io",
"license": "AGPL-3.0",
"repository": {
"type": "git",
@@ -12,21 +12,18 @@
{
"name": "jysperm",
"email": "jysperm@gmail.com",
"url": "http://jysperm.me"
"url": "https://jysperm.me"
}
],
"scripts": {
"start": "./node_modules/.bin/coffee app.coffee",
"migrate": "./node_modules/.bin/coffee bin/rp-migrate.coffee",
"migrate": "./node_modules/.bin/coffee bin/migrate.coffee",
"reconfigure": "./node_modules/.bin/coffee bin/reconfigure.coffee",
"test": "COV_TEST=true ./node_modules/.bin/mocha --compilers coffee:coffee-script/register --require test/env --reporter node_modules/mocha-reporter-cov-summary -- core/test/*.test.coffee core/test/*/*.test.coffee plugin/*/test",
"test-only": "./node_modules/.bin/mocha --compilers coffee:coffee-script/register --require test/env -- core/test/*.test.coffee core/test/*/*.test.coffee plugin/*/test",
"test-full": "./node_modules/.bin/coffee test/full-test.coffee",
"test-cov-html": "COV_TEST=true ./node_modules/.bin/mocha --compilers coffee:coffee-script/register --require test/env --reporter html-cov -- core/test/*.test.coffee core/test/*/*.test.coffee plugin/*/test > coverage-reporter.html"
},
"bin": {
"rp-fix-permissions": "./bin/rp-fix-permissions.coffee",
"rp-migrate": "./bin/migrate.coffee"
},
"dependencies": {
"async": "^0.9.0",
"body-parser": "^1.9.0",

View File

@@ -1,4 +1,4 @@
describe 'plugin/linux', ->
(if isPluginEnable('linux') then describe else describe.skip) 'plugin/linux', ->
linux = null
cache = null
redis = null

View File

@@ -1,4 +1,4 @@
describe 'plugin/rpvhost', ->
(if isPluginEnable('rpvhost') then describe else describe.skip) 'plugin/rpvhost', ->
agent = null
before ->

View File

@@ -1,4 +1,4 @@
describe 'plugin/shadowsocks', ->
(if isPluginEnable('shadowsocks') then describe else describe.skip) 'plugin/shadowsocks', ->
agent = null
utils = null
config = null

View File

@@ -1,4 +1,4 @@
describe 'plugin/supervisor', ->
(if isPluginEnable('supervisor') then describe else describe.skip) 'plugin/supervisor', ->
describe 'router', ->
it 'POST update_program'

View File

@@ -1,4 +1,4 @@
describe 'plugin/wiki', ->
(if isPluginEnable('wiki') then describe else describe.skip) 'plugin/wiki', ->
agent = null
before ->

View File

@@ -41,3 +41,6 @@ if process.env.TRAVIS == 'true'
config.mongodb.password = undefined
config.redis.password = undefined
global.isPluginEnable = (name) ->
return name in _.union config.plugin.available_extensions, config.plugin.available_services

View File

@@ -9,13 +9,7 @@ async.eachSeries fs.readdirSync("#{__dirname}/../sample"), (filename, callback)
console.log "Config: #{filename}"
params = '--compilers coffee:coffee-script/register --require test/env --reporter node_modules/mocha-reporter-cov-summary --
core/test/*.test.coffee core/test/*/*.test.coffee'.split(' ')
config = require "#{__dirname}/../sample/#{filename}"
for plugin_name in _.union config.plugin.available_extensions, config.plugin.available_services
if fs.existsSync "plugin/#{plugin_name}/test"
params.push "plugin/#{plugin_name}/test/*.test.coffee"
core/test/*.test.coffee core/test/*/*.test.coffee plugin/*/test/*.test.coffee'.split(' ')
proc = child_process.spawn "#{__dirname}/../node_modules/.bin/mocha", params,
env: _.extend process.env,