ci: run gitly

pull/11039/head
Alexander Medvednikov 2021-08-03 15:41:43 +03:00
parent 0455632b1f
commit f879b3e221
2 changed files with 6 additions and 2 deletions

View File

@ -870,6 +870,7 @@ jobs:
git clone --depth 1 https://github.com/vlang/gitly
cd gitly
../v .
./gitly -ci_run
../v -autofree .
cd ..

View File

@ -100,7 +100,9 @@ struct MultiplePathAttributesError {
}
// declaring init_server in your App struct is optional
pub fn (ctx Context) init_server() {}
pub fn (ctx Context) init_server() {
eprintln('init_server() has been deprecated, please init your web app in `fn main()`')
}
// declaring before_request in your App struct is optional
pub fn (ctx Context) before_request() {}
@ -275,7 +277,6 @@ interface DbInterface {
// run_app
[manualfree]
pub fn run<T>(global_app &T, port int) {
// x := global_app.clone()
// mut global_app := &T{}
// mut app := &T{}
// run_app<T>(mut app, port)
@ -287,7 +288,9 @@ pub fn run<T>(global_app &T, port int) {
// conn: 0
//}
// app.init_server()
// unsafe {
// global_app.init_server()
//}
//$for method in T.methods {
//$if method.return_type is Result {
// check routes for validity