forked from cncf/devstats.archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.32 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
language: go
go:
- 1.9
before_install:
- go get -u github.com/golang/lint/golint
- go get golang.org/x/tools/cmd/goimports
- go get github.com/jgautheron/goconst/cmd/goconst
- go get github.com/jgautheron/usedexports
- go get github.com/influxdata/influxdb/client/v2
- go get github.com/lib/pq
- go get golang.org/x/text/transform
- go get golang.org/x/text/unicode/norm
- go get gopkg.in/yaml.v2
- sudo -u postgres createdb gha
- sudo -u postgres psql gha -c "create user gha_admin with password 'pwd';"
- sudo -u postgres psql gha -c 'grant all privileges on database "gha" to gha_admin;'
- sudo -u postgres psql gha -c "alter user gha_admin createdb;"
- curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
- source /etc/lsb-release
- echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
- sudo apt-get update
- sudo apt-get install influxdb
- sudo service influxdb start
script:
- mv /home/travis/gopath/src/github.com/cncf/gha2db /home/travis/gopath/src/gha2db
- cd /home/travis/gopath/src/gha2db
- make
- make test
- PG_PASS=pwd ./dbtest.sh
services:
- postgresql
addons:
postgresql: "9.6"
notifications:
webhooks:
- https://cncftest.io:2982/hook
- https://devstats.k8s.io:2982/hook