Torkel Ödegaard пре 10 година
родитељ
комит
c6d4b5cc86
4 измењених фајлова са 25 додато и 13 уклоњено
  1. 7 4
      build.go
  2. 1 1
      package.json
  3. 0 8
      pkg/setting/data/log/grafana.log
  4. 17 0
      wercker.yml

+ 7 - 4
build.go

@@ -72,12 +72,15 @@ func main() {
 		case "test":
 			test("./pkg/...")
 
+		case "latest":
+			version += "-" + getGitSha()
+
 		case "package":
-			//clean()
+			clean()
 			//verifyGitRepoIsClean()
-			//test("./pkg/...")
-			//build(".", []string{})
-			//buildFrontend()
+			test("./pkg/...")
+			build(".", []string{})
+			buildFrontend()
 			createRpmAndDeb()
 
 		case "build-ui":

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
     "company": "Coding Instinct AB"
   },
   "name": "grafana",
-  "version": "2.0.2-alpha",
+  "version": "2.0.0-beta1",
   "repository": {
     "type": "git",
     "url": "http://github.com/torkelo/grafana.git"

+ 0 - 8
pkg/setting/data/log/grafana.log

@@ -1,8 +0,0 @@
-2015/03/03 09:52:42 [I] Setting: ENV override found: GF_SECURITY_ADMIN_USER
-2015/03/03 09:59:43 [I] Setting: ENV override found: GF_SECURITY_ADMIN_USER
-2015/03/03 10:03:13 [I] Setting: ENV override found: GF_SECURITY_ADMIN_USER
-2015/03/03 10:09:13 [I] Setting: ENV override found: GF_SECURITY_ADMIN_USER
-2015/03/03 10:09:34 [I] Setting: ENV override found: GF_SECURITY_ADMIN_USER
-2015/03/03 10:15:20 [I] Setting: ENV override found: GF_SECURITY_ADMIN_USER
-2015/03/03 12:29:29 [I] Setting: ENV override found: GF_SECURITY_ADMIN_USER
-2015/03/03 12:33:09 [I] Setting: ENV override found: GF_SECURITY_ADMIN_USER

+ 17 - 0
wercker.yml

@@ -6,6 +6,23 @@ steps:
 
 build:
   steps:
+    script: |
+      export RUBYVERSION=2.0.0-p594
+      sudo apt-get update
+      sudo apt-get install git zlib1g-dev libreadline-dev libqtwebkit-dev
+      sudo apt-get remove ruby1.9.1
+      cd $HOME
+      mkdir rubyinstall
+      cd rubyinstall
+      wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-$RUBYVERSION.tar.gz
+      tar xzvf ruby-$RUBYVERSION.tar.gz
+      cd ruby-$RUBYVERSION
+      ./configure --with-readline-dir=/usr/include/readline --with-openssl-dir=/usr/include/openssl
+      make
+      make test
+      sudo make install
+      cd $HOME
+      rm -fr rubyinstall
     # Workspace
     - setup-go-workspace
     - script: