Reenable tests

This commit is contained in:
Laszlo Fogas
2019-07-01 14:24:46 +02:00
parent 37d8f79219
commit e2307c9ae7
3 changed files with 18 additions and 14 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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",