updating some folders names

This commit is contained in:
Julien Neuhart
2018-04-06 17:40:50 +02:00
parent 21ace615c2
commit 62c72d293e
9 changed files with 14 additions and 14 deletions

28
.ci/docker-entrypoint.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
set -xe
# Statically checking Go source for errors and warnings.
gometalinter.v2 --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode -E gocyclo --vendor ./...;
# Running tests according to current Gotenberg version.
if [[ "$VERSION" == "snapshot" ]]; then
for d in $(go list ./... | grep -v vendor); do
go test -race -cover $d;
done
else
echo "" > ./.ci/coverage.txt;
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d;
if [ -f profile.out ]; then
cat profile.out >> ./.ci/coverage.txt;
rm profile.out;
fi
done
fi
# Builds the Linux binary.
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" && mv gotenberg .build/;
# Bye!
exit 0;