mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Reenable tests
This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -7,15 +7,15 @@ workspace:
|
||||
path: src/github.com/laszlocph/drone-oss-08
|
||||
|
||||
pipeline:
|
||||
# test:
|
||||
# image: golang:1.12
|
||||
# commands:
|
||||
# - go get -u golang.org/x/tools/cmd/cover
|
||||
# - go get -u golang.org/x/net/context
|
||||
# - go get -u golang.org/x/net/context/ctxhttp
|
||||
# - go get -u github.com/golang/protobuf/proto
|
||||
# - go get -u github.com/golang/protobuf/protoc-gen-go
|
||||
# - go test -cover $(go list ./... | grep -v /vendor/)
|
||||
test:
|
||||
image: golang:1.12
|
||||
commands:
|
||||
- go get -u golang.org/x/tools/cmd/cover
|
||||
- go get -u golang.org/x/net/context
|
||||
- go get -u golang.org/x/net/context/ctxhttp
|
||||
- go get -u github.com/golang/protobuf/proto
|
||||
- go get -u github.com/golang/protobuf/protoc-gen-go
|
||||
- go test -cover $(go list ./... | grep -v /vendor/)
|
||||
|
||||
test_postgres:
|
||||
image: golang:1.12
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// +build manual
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -36,6 +38,13 @@ func Test_main(t *testing.T) {
|
||||
app.Version = version.Version.String()
|
||||
app.Usage = "drone server"
|
||||
app.Action = server
|
||||
|
||||
flags = append(flags, cli.StringFlag{
|
||||
EnvVar: "TEST_RUN",
|
||||
Name: "test.run",
|
||||
Usage: "VSCode sets this flag",
|
||||
})
|
||||
|
||||
app.Flags = flags
|
||||
app.Before = before
|
||||
|
||||
|
||||
@@ -57,11 +57,6 @@ import (
|
||||
)
|
||||
|
||||
var flags = []cli.Flag{
|
||||
cli.StringFlag{
|
||||
EnvVar: "TEST_RUNE",
|
||||
Name: "test.run",
|
||||
Usage: "VSCode sets this flag",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
EnvVar: "DRONE_DEBUG",
|
||||
Name: "debug",
|
||||
|
||||
Reference in New Issue
Block a user