aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLunny Xiao2017-12-09 18:16:59 +0800
committerLauris BH2017-12-09 12:16:59 +0200
commit81fd8c8fb686621acfdd91a73ade75b44030ce18 (patch)
treeff1395353aef15b2a8eef1c5f4c792f56cdb5011
parentfd7686171e342430f3ab88b5d18b9d865298666c (diff)
Comment backport test and add missing drone test (#3127)v1.3.1
* comment backport test since the test reference many changes * fix missing drone test on release/* * remove test coverage on release/*
-rw-r--r--.drone.yml13
-rw-r--r--routers/user/setting_test.go16
2 files changed, 15 insertions, 14 deletions
diff --git a/.drone.yml b/.drone.yml
index 866d8ebe4..1b282bfce 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -91,6 +91,19 @@ pipeline:
pull: true
group: test
environment:
+ TAGS: bindata sqlite
+ GOPATH: /srv/app
+ commands:
+ - make test
+ when:
+ event: [ push, pull_request ]
+ branch: [ release/* ]
+
+ test:
+ image: webhippie/golang:edge
+ pull: true
+ group: test
+ environment:
TAGS: bindata
GOPATH: /srv/app
commands:
diff --git a/routers/user/setting_test.go b/routers/user/setting_test.go
index 72b1b8314..82af0f21c 100644
--- a/routers/user/setting_test.go
+++ b/routers/user/setting_test.go
@@ -4,19 +4,7 @@
package user
-import (
- "net/http"
- "testing"
-
- "code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/auth"
- "code.gitea.io/gitea/modules/setting"
- "code.gitea.io/gitea/modules/test"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestChangePassword(t *testing.T) {
+/*func TestChangePassword(t *testing.T) {
oldPassword := "password"
setting.MinPasswordLength = 6
@@ -65,4 +53,4 @@ func TestChangePassword(t *testing.T) {
assert.EqualValues(t, req.Message, ctx.Flash.ErrorMsg)
assert.EqualValues(t, http.StatusFound, ctx.Resp.Status())
}
-}
+}*/