From dfa2221837b0e757894d29380d3179615deb7a2d Mon Sep 17 00:00:00 2001 From: hisham waleed karam Date: Tue, 30 Oct 2018 02:20:10 +0200 Subject: [PATCH] add dep files --- .gitignore | 3 +- Gopkg.lock | 182 +++++++++++++++++++++++++++++++++++++++++++++++ Gopkg.toml | 58 +++++++++++++++ layer_test.go | 2 +- scripts/entry.sh | 4 +- 5 files changed, 245 insertions(+), 4 deletions(-) create mode 100644 Gopkg.lock create mode 100644 Gopkg.toml diff --git a/.gitignore b/.gitignore index c61a0ce..23a1912 100644 --- a/.gitignore +++ b/.gitignore @@ -50,4 +50,5 @@ _testmain.go # use alternative ways to exclude files from git. # For example, set up .git/info/exclude or use a global .gitignore. local_config.yaml -play \ No newline at end of file +play +vendor \ No newline at end of file diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 0000000..83b0303 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,182 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec" + name = "github.com/davecgh/go-spew" + packages = ["spew"] + pruneopts = "UT" + revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" + version = "v1.1.1" + +[[projects]] + branch = "master" + digest = "1:988cfde37f089c50ba1ac8a1032c3f81d2ac0359e1872093b946a30139665eb6" + name = "github.com/dsnet/compress" + packages = [ + ".", + "bzip2", + "bzip2/internal/sais", + "internal", + "internal/errors", + "internal/prefix", + ] + pruneopts = "UT" + revision = "cc9eb1d7ad760af14e8f918698f745e80377af4f" + +[[projects]] + branch = "master" + digest = "1:4a0c6bb4805508a6287675fac876be2ac1182539ca8a32468d8128882e9d5009" + name = "github.com/golang/snappy" + packages = ["."] + pruneopts = "UT" + revision = "2e65f85255dbc3072edf28d6b5b8efc472979f5a" + +[[projects]] + branch = "master" + digest = "1:4986f7b4549abae17446ea5288ad9cb15d260ee8a6ab70293fcc7e890d83568b" + name = "github.com/hishamkaram/geoserver" + packages = [ + ".", + "wms", + ] + pruneopts = "UT" + revision = "3c609cb23b7b352d61a68e6acc00a13ce3383c94" + +[[projects]] + digest = "1:0a69a1c0db3591fcefb47f115b224592c8dfa4368b7ba9fae509d5e16cdc95c8" + name = "github.com/konsorten/go-windows-terminal-sequences" + packages = ["."] + pruneopts = "UT" + revision = "5c8c8bd35d3832f5d134ae1e1e375b69a4d25242" + version = "v1.0.1" + +[[projects]] + digest = "1:8ef506fc2bb9ced9b151dafa592d4046063d744c646c1bbe801982ce87e4bc24" + name = "github.com/lib/pq" + packages = [ + ".", + "oid", + ] + pruneopts = "UT" + revision = "4ded0e9383f75c197b3a2aaa6d590ac52df6fd79" + version = "v1.0.0" + +[[projects]] + branch = "master" + digest = "1:d5212dcd240a381ba4db01d6da33f738d5ec597fd69a81250de921c301de778e" + name = "github.com/lukeroth/gdal" + packages = ["."] + pruneopts = "UT" + revision = "a5128536b06fad1b6ba7565e0a519b6b614e4fb6" + +[[projects]] + digest = "1:d6f988e7296cebe16d9c405b73bee34da871b382f7438c811279614a725239ae" + name = "github.com/mholt/archiver" + packages = ["."] + pruneopts = "UT" + revision = "de0d89e255e17c8d75a40122055763e743ab0593" + version = "v2.1" + +[[projects]] + digest = "1:b93a939355dc613ca1c23bf39f6d4c207da431a31dd8af001cc334ad24cab9d3" + name = "github.com/nwaples/rardecode" + packages = ["."] + pruneopts = "UT" + revision = "cc3e4b2381762c56dbcdf9f93be03349a1dc1c14" + version = "v1.0.0" + +[[projects]] + digest = "1:e39a5ee8fcbec487f8fc68863ef95f2b025e0739b0e4aa55558a2b4cf8f0ecf0" + name = "github.com/pierrec/lz4" + packages = [ + ".", + "internal/xxh32", + ] + pruneopts = "UT" + revision = "635575b42742856941dbc767b44905bb9ba083f6" + version = "v2.0.7" + +[[projects]] + digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe" + name = "github.com/pmezard/go-difflib" + packages = ["difflib"] + pruneopts = "UT" + revision = "792786c7400a136282c1664665ae0a8db921c6c2" + version = "v1.0.0" + +[[projects]] + digest = "1:3f53e9e4dfbb664cd62940c9c4b65a2171c66acd0b7621a1a6b8e78513525a52" + name = "github.com/sirupsen/logrus" + packages = ["."] + pruneopts = "UT" + revision = "ad15b42461921f1fb3529b058c6786c6a45d5162" + version = "v1.1.1" + +[[projects]] + digest = "1:5110e3d4f130772fd39e6ce8208ad1955b242ccfcc8ad9d158857250579c82f4" + name = "github.com/stretchr/testify" + packages = [ + "assert", + "require", + "suite", + ] + pruneopts = "UT" + revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686" + version = "v1.2.2" + +[[projects]] + digest = "1:db345c377984d0907323c09a9b17f11d995a59649fd38f909727df358b5f9020" + name = "github.com/ulikunitz/xz" + packages = [ + ".", + "internal/hash", + "internal/xlog", + "lzma", + ] + pruneopts = "UT" + revision = "590df8077fbcb06ad62d7714da06c00e5dd2316d" + version = "v0.5.5" + +[[projects]] + branch = "master" + digest = "1:3f3a05ae0b95893d90b9b3b5afdb79a9b3d96e4e36e099d841ae602e4aca0da8" + name = "golang.org/x/crypto" + packages = ["ssh/terminal"] + pruneopts = "UT" + revision = "b078efbc8099b041569edb8c6ab625cd430e3fce" + +[[projects]] + branch = "master" + digest = "1:a5090ea95e2600b2a369df77359c5871948f12bc8f0632db0342f5acc5e30c1d" + name = "golang.org/x/sys" + packages = [ + "unix", + "windows", + ] + pruneopts = "UT" + revision = "d69651ed3497faee15a5363a89578e9991f6d5e2" + +[[projects]] + digest = "1:342378ac4dcb378a5448dd723f0784ae519383532f5e70ade24132c4c8693202" + name = "gopkg.in/yaml.v2" + packages = ["."] + pruneopts = "UT" + revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183" + version = "v2.2.1" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + input-imports = [ + "github.com/hishamkaram/geoserver", + "github.com/lib/pq", + "github.com/lukeroth/gdal", + "github.com/mholt/archiver", + "github.com/sirupsen/logrus", + "github.com/stretchr/testify/assert", + "github.com/stretchr/testify/suite", + "gopkg.in/yaml.v2", + ] + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 0000000..53c1902 --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,58 @@ +# Gopkg.toml example +# +# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" +# +# [prune] +# non-go = false +# go-tests = true +# unused-packages = true + + +[[constraint]] + branch = "master" + name = "github.com/hishamkaram/geoserver" + +[[constraint]] + name = "github.com/lib/pq" + version = "1.0.0" + +[[constraint]] + branch = "master" + name = "github.com/lukeroth/gdal" + +[[constraint]] + name = "github.com/mholt/archiver" + version = "2.1.0" + +[[constraint]] + name = "github.com/sirupsen/logrus" + version = "1.1.1" + +[[constraint]] + name = "github.com/stretchr/testify" + version = "1.2.2" + +[[constraint]] + name = "gopkg.in/yaml.v2" + version = "2.2.1" + +[prune] + go-tests = true + unused-packages = true diff --git a/layer_test.go b/layer_test.go index 2620a55..ec4a87f 100644 --- a/layer_test.go +++ b/layer_test.go @@ -31,7 +31,7 @@ func TestGetLayerSchema(t *testing.T) { } fields := gLayer.GetLayerSchema() assert.NotNil(t, fields) - assert.Equal(t, 9, len(fields)) + assert.True(t, len(fields) > 0) } diff --git a/scripts/entry.sh b/scripts/entry.sh index cc6a225..635cb47 100644 --- a/scripts/entry.sh +++ b/scripts/entry.sh @@ -1,2 +1,2 @@ -while [[ "$(curl -u admin:geoserver -s -o /dev/null -w ''%{http_code}'' localhost:8080/geoserver/rest/about/status)" != "200" ]]; do sleep 5 &&echo "."; done; go test -v -covermode=count -coverprofile=coverage.out -$GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN \ No newline at end of file +while [[ "$(curl -u admin:geoserver -s -o /dev/null -w ''%{http_code}'' localhost:8080/geoserver/rest/about/status)" != "200" ]]; do sleep 5 && echo "."; done;go test -v -covermode=count -coverprofile=coverage.out && \ +$GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN