forked from go-spatial/tegola
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
95 lines (83 loc) · 6.6 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
language: go
# Does nothing when building on go-spatial/tegola, but makes builds work cleanly on forks.
go_import_path: github.com/go-spatial/tegola
dist: xenial
git:
depth: 3
env:
global:
# secure DOCKER_USERNAME to push to repo gospatial/tegola.
- secure: "IlT9p8OUxTgvdVW5teBLiINrqcjqxTeTvaNOz7fZ24Sv5sqkOldzCa24/FQH/LinOXQFHl1jq7C+Tqu0OQhw/L6T28oDrzGSJf+PmdqmnrgqndTthDMRfh3Vw1KqgMAFJSma+G39XNo6T15clKIU7iMMR4gWa7zFx/BjclT9kk0dGP/RIR3HDG9Svqo6q9rsRMIsuTSmiN73QL8pqcbPAjYuXfQ5COffCObipLORbinacmf6tiiVDG+ZtH9FtXkJf0reb/jZZWCvk12IENtSK5R2r/UOZ5nZ6QwMNE0WnxqeZB5qJfnT2kHz/fRU02hypJllMAiB3agr3/yCy3ut8aVwI2QAK1FkOWCGUa0C4vWKZZ+aDM+BKnsADTRuxdY+HUDVlgQv0IXSxiYPbFxABdw7Y/G9p8KDiDH16yp4QLsKRo15QWOJk2Fa4MD20t7dFqiYJl47V8LSrwmov9hg5mxn2REpzRxoQ7Smyrl6gPXKjyp7VBFUNCmAGZFuSwDKktS8iwyM2rlJLiJCouSJGG8mnyFK4GoUuuYTU7hcV11oQiUJ51bk+0iSJsjjoWvjRDy+HY7CnBbEvxEmt8kmbNrbPyyFvq6FDOQauJr9rnx3U4vB26jwnH0MBIWOVyd1LL/lmQHIsFnmgSuOflDrDnULU6azXqUkl22rs9uPB6c="
# secure DOCKER_PASSWORD
- secure: "bQvCZLmlErLeXo5fULlmSJ+3XCc6pdGZ1QP9EX0naGPfsvSyTVZed9aFsHJDUtg3XpbxJ7aB4M/L30UbZJFcnai/rcjzirqDioOjC1pFVCwgpBGVetsUdVt7KYHM2sCN0+Wj8h0H026XWVVR+2rjq3V63GxB4s9nN1RYWO1kDmxy3/BSAaPFt9eNdGq0NwJ9CjA1hS928jn/FR72ZLZ17Iav+8zay27kc8IJYjze4iQ+ji4Rs0+vA5cgXdS7iKelbSwTggMsikUOQRZ8sptP2qfqaADF2P5gZlS1aOb3El9wXEZjESqIjzycNvLlPbAijdgiFsh45deBzgKay3/Dapw7ttsR3exd4dcvnU34eP45ms4Tm6o+QifP2wyzwiHi+Aa2ELfiC//nFUAiKdX4urqsH7wv/HCJtgXOaK6bHlEK6YSqQafY5QmDOPoWnFCv1M+1JcK1HVpAS3Vny1Fui/yasFZcg8OhZHxHkkBadgVQEJAB61Z86LfFyKFAbqQ2xcw6rYVdgKj/j85cntNmk3d/skCZYkKOwYPEDWSLoF+HwYHln2jQfyVB3qj4FBpjTBsFjz5E5y9/Efv3sRXlIkhhOJhMiOSje8AjXnAKkPS5PbgNmx5N2i2E0aN7/KZpAFrGaenSn8D6Bh6+xaX8sZEl+5OCBJyL0p/Ji1Lr1+o="
- RUN_POSTGIS_TESTS=yes
- PGHOST="localhost"
- PGPORT=5432
- PGDATABASE="tegola"
- PGUSER="postgres"
- PGUSER_NO_ACCESS="tegola_no_access"
- PGSSLMODE="disable"
- PGSSLKEY=""
- PGSSLCERT=""
- PGSSLROOTCERT=""
- DOCKERHUB_ORG="gospatial"
- DOCKERHUB_REPO="tegola"
- RUN_REDIS_TESTS=yes
# "COVERALLS_TOKEN" nvp encrypted using travis CLI - contains api key used to post test coverage results to coveralls.io account repo associated w/ github repo
- secure: iXQ7Bpf/190qUhs3SqM1vpQrEA5HRoMvDmydaPsbLG9qfdIYC7qzPClEzfG+XJ6WWmHjBUMAh8WO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U9WAqRWBb1/g4WDj/wgb4mDVN1+kxPQejQaXa737zQ+thxupdXGISnyrcZi3DKs9+Yzp+5GbZ+jNmq1s1ErUJJyF+qAntwc4RiPA35lns0aRAWY6h5P/zxTaXQNf/b8OJDISKLAuvmj3oe0Wwv8kVeWDtS05MVuIh576AeTdpTH7aFmUnNjpVGK20JGd4jHDSAAp90wZlfSI6EJSEv46wzEWACd9IDKmW8ro9Jg2LYio4YivW9poS0F3pqb3fbzpcmq3+9vlWSh2B0aJZCApkF/67b4Q=
matrix:
include:
- go: "1.12.x"
env: CGO_ENABLED=0
- go: "1.11.x"
env: CGO_ENABLED=0
- go: "1.10.x"
env: CGO_ENABLED=0
- go: "1.12.x"
- go: "1.11.x"
- go: "1.10.x"
services:
- docker
- postgresql
- redis-server
addons:
postgresql: "9.6"
apt:
packages:
- postgresql-9.6-postgis-2.4
install:
- echo $TRAVIS_GO_VERSION
- bash ci/build_bindata.sh
- bash ci/config_postgis.sh
# "script" phase occurs after "install" and before "deploy" phases (and sub-phases) - see https://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle
# by default, in absence of "script" phase, travis go build executes "go test -v ./..." - see https://docs.travis-ci.com/user/languages/go/#Default-Build-Script
# which we replace below since we want to execute "go test" against multiple packages while generating a cover profile for each - "go test" does not currently
# support this, so we use custom script go_test_multi_package_coverprofile.sh to do so... this script also aggregates generated cover profiles into a single
# coverage profile and then finally posts the results to the coveralls.io acccount/repo associated with the encrypted API key/token above - see "COVERALLS_TOKEN"
# in env|global section, above
script:
- bash ci/go_test_multi_package_coverprofile.sh --coveralls
before_deploy:
- bash -x ci/build_binary.sh
- bash -x ci/build_docker.sh
deploy:
provider: releases
api_key:
secure: GrkTzVjddIHB8MXfLloPgifJKrZuFptk9DzrrSSXAOxxBBqYnddg2WKAr2TfrPLQaSNdR84PaPN3FXW009W/CjclxM3mW9h9a/sFVlWtWOWd5u/szFPwn5JQKKt0D/EhScBUF9Jvyo4g28YxSR9rV/RnJne/B6pthJAFSrztHglC7XGkW9mSTH7aG68yIALoGeqHRIKT3DDHJPCm14EEXKq8oacJSX6SZyexBcBJRKj8S+/k3HoYDeKqvCC8oPHt1kPHXiSF/mZdeox0CQ+Q9B3cWPu6rFNbOjiLQriq9ayY/DxdZPVHdQ/nFkTpBQ3lwDLFL4X2jcT1V0jvNxJnExJOXV9lFtjvyExqr7quGHTMd4iJVeYOkWwEl8/cJJAoePIlKaGL5FDxLhlq1RscHOu25sd1DgmbhJMjlexxG/bXyJhV873kyv6JhIq+XniA2TxpaMMrut8MOBH76THbQr9yWpdf6GXs7NdRiK8yzS+L/hvXJO88NXegavCk8gGtWhHSLSJzYg5fVIo9QdghfRe8cLj2HcMehwzLyu3GRiWdm8TtNQ+PIp9qXxB+BIOfXN+Dx1ydVdlt8aghefONw9+0zDtrGZhWyORMHBCypXrTEmiGxlIfsR4QQxVpejd8DXi3i9CQou68ECuC51YqxhH49tfiE8Adh0WPKCklRnY=
file_glob: true
file:
- releases/*
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_GO_VERSION =~ ^1\\.12(\\..+)?$"
notifications:
email:
on_success: never
slack:
secure: TzRnZdJ1dhQJg9nby2oJ6qFj9Bl20VJ2aJXmXwADsj2ck/UGsFWpYNnqZVWvZomCZEJinFpA/h2TG1odEzg1BpCT0+rLIGQDAhIMVuici+nIs+DyPQmL2owG1LZ6/hzX09Y1mIZci0nmnI1wousfM8WDPRq5NSOsBeAMlixGR4g4lF8cp/R0B6CtcewtQx4RicdPJtopHDwXm5KI1/7euFcJwu15FWwWoUp6mOw+r44T1Md+qbqDKBbLSy+YvMkPcxI7HeECa7OP9OjkeUfU0BoMP6qqo9QTVX5v6lOHxA+FhueyyPrSTtNV377tilDy88kytqu6w8gcrxZOddj7nFbv6ErjfVaMfeepzk/HH2bzlLevvL+ukeJKrBNdmPuDRU3BqG5ygrdGAQUNpM7VSXLDcGrM2+ocVn/HO1NyXWwpejq7Gq0HWhNkYPHG5c7+khkQkRGJtg0wp9R3qXDAcRHLR+CHh89g5Blz4Wo6R/Q48MLJycbH/W56zsoe0xQ5Ww2eti16uSFE4kkiPt99uewWkPSfEZn4pyk+xCwDxgNDNu/BaV+Mjm4JTL1GjWalto+NLK7NsEg+6sEYok0CHkUb8MQV++r1KVfIaxC3zVuojIiOSB9/+JPtPd9w2iuVOlz0rrbXfKkkSf5wcmOguqk3aAfAgmcjAV9p1kI9pSc=