Browse Source

Update hard-coded version to 1.3.0-dev (#2390)

* Use -dev (1.3.0-dev is less than 1.3.0, according to semver)

* Use fake version for testing purpose
Sandro Santilli 1 year ago
parent
commit
a4cd4616c6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      integrations/version_test.go
  2. 1 1
      main.go

+ 1 - 1
integrations/version_test.go

@@ -17,7 +17,7 @@ import (
17 17
 func TestVersion(t *testing.T) {
18 18
 	prepareTestEnv(t)
19 19
 
20
-	setting.AppVer = "1.1.0+dev"
20
+	setting.AppVer = "test-version-1"
21 21
 	req := NewRequest(t, "GET", "/api/v1/version")
22 22
 	resp := MakeRequest(t, req, http.StatusOK)
23 23
 

+ 1 - 1
main.go

@@ -21,7 +21,7 @@ import (
21 21
 )
22 22
 
23 23
 // Version holds the current Gitea version
24
-var Version = "1.1.0+dev"
24
+var Version = "1.3.0-dev"
25 25
 
26 26
 // Tags holds the build tags used
27 27
 var Tags = ""