forked from GeoNet/fdsn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (39 loc) · 1.49 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
sudo: required
language: go
go:
- 1.12.1
services:
- docker
before_deploy:
- docker --version
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
- eval $(aws ecr get-login --no-include-email --region ap-southeast-2) #needs AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY envvars
# trying to fix postgis bug which comes on the travis infrastructure that has sudo.
before_install:
- export DEBIAN_FRONTEND=noninteractive;
sudo -E apt-get -yq update &>> ~/apt-get-update.log;
sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install postgresql-9.5-postgis-2.3
- sudo apt-get install -y xsltproc
install: true
addons:
postgresql: '9.5'
before_script:
- psql -U postgres -c "create extension postgis"
- ./etc/scripts/initdb.sh
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.16.0
script:
- make -C vendor/github.com/GeoNet/kit/cvendor/libmseed
- make -C vendor/github.com/GeoNet/kit/cvendor/libslink
- test -z "$(gofmt -s -l `find . -name "*.go" | egrep -v vendor` | tee /dev/stderr)"
- go vet ./...
- go test -v ./internal/...
- ./all.sh
- 'if [ "TRAVIS_SECURE_ENV_VARS" = "true" ]; then bash ./all-integration.sh; fi'
- golangci-lint run -E gosec # default linters + gosec
deploy:
- provider: script
skip_cleanup: true
script: ./build-push.sh fdsn-quake-consumer fdsn-ws fdsn-holdings-consumer fdsn-ws-nrt fdsn-slink-db
on:
branch: master