mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 04:12:16 +01:00
improving tests process
This commit is contained in:
16
orbit.yml
16
orbit.yml
@@ -1,23 +1,15 @@
|
||||
tasks:
|
||||
|
||||
- use: install
|
||||
short: Installs all required dev dependencies
|
||||
run:
|
||||
- go get -u github.com/golang/dep/cmd/dep
|
||||
- go get -u gopkg.in/alecthomas/gometalinter.v2
|
||||
- gometalinter.v2 --install
|
||||
|
||||
- use: lint
|
||||
short: Formats the code and statically checks for errors and warnings
|
||||
|
||||
- use: fmt
|
||||
short: Runs go fmt ./...
|
||||
run:
|
||||
- go fmt ./...
|
||||
- gometalinter.v2 --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode -E gocyclo --vendor ./...
|
||||
|
||||
- use: tests
|
||||
short: Runs tests inside a container
|
||||
run:
|
||||
- docker build -t gotenberg:tests -f Dockerfile.tests .
|
||||
- docker run --rm gotenberg:tests
|
||||
- docker run --rm -e "VERSION={{ .Orbit.Version }}" -v "$(pwd)/_ci:/go/src/github.com/gulien/gotenberg/_ci" gotenberg:tests
|
||||
|
||||
- use: build
|
||||
short: Builds a Linux binary and the Docker image
|
||||
|
||||
Reference in New Issue
Block a user