1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 15:10:54 +00:00

add beego version and bee version and travis

This commit is contained in:
astaxie 2016-01-25 21:49:49 +08:00
parent 0dbe35a943
commit 1566ca7da1
2 changed files with 18 additions and 1 deletions

6
.travis.yml Normal file
View File

@ -0,0 +1,6 @@
language: go
go:
- 1.5.3
- 1.4.3
- 1.3.3

13
run.go
View File

@ -15,8 +15,11 @@
package main package main
import ( import (
"fmt"
"io/ioutil" "io/ioutil"
"log"
"os" "os"
"os/exec"
path "path/filepath" path "path/filepath"
"runtime" "runtime"
"strings" "strings"
@ -51,6 +54,14 @@ func init() {
var appname string var appname string
func runApp(cmd *Command, args []string) int { func runApp(cmd *Command, args []string) int {
fmt.Println("bee :" + version)
fmt.Println("beego :" + getbeegoVersion())
goversion, err := exec.Command("go", "version").Output()
if err != nil {
log.Fatal(err)
}
fmt.Println("Go :" + string(goversion))
exit := make(chan bool) exit := make(chan bool)
crupath, _ := os.Getwd() crupath, _ := os.Getwd()
@ -70,7 +81,7 @@ func runApp(cmd *Command, args []string) int {
} }
Debugf("current path:%s\n", crupath) Debugf("current path:%s\n", crupath)
err := loadConfig() err = loadConfig()
if err != nil { if err != nil {
ColorLog("[ERRO] Fail to parse bee.json[ %s ]\n", err) ColorLog("[ERRO] Fail to parse bee.json[ %s ]\n", err)
} }