diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..933c032 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: go + +go: + - 1.5.3 + - 1.4.3 + - 1.3.3 diff --git a/run.go b/run.go index 8ef769c..ec136b6 100644 --- a/run.go +++ b/run.go @@ -15,8 +15,11 @@ package main import ( + "fmt" "io/ioutil" + "log" "os" + "os/exec" path "path/filepath" "runtime" "strings" @@ -51,6 +54,14 @@ func init() { var appname string 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) crupath, _ := os.Getwd() @@ -70,7 +81,7 @@ func runApp(cmd *Command, args []string) int { } Debugf("current path:%s\n", crupath) - err := loadConfig() + err = loadConfig() if err != nil { ColorLog("[ERRO] Fail to parse bee.json[ %s ]\n", err) }