This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
55 lines (46 loc) · 1.23 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
sudo: required
dist: trusty
language: go
go:
- 1.6
- tip
env:
global:
- BACKEND="$HOME/gopath/src/github.com/seadsystem/Backend"
- API="$BACKEND/DB/api"
- LZONE="$BACKEND/DB/landingzone"
- PYTHONPATH="$BACKEND"
addons:
apt:
packages:
- libpq-dev
- python3-numpy
- python3-scipy
- python3-psycopg2
- python-psycopg2
services: postgresql
install:
- go get -u github.com/olt/libpq
- go get -u github.com/DATA-DOG/go-sqlmock
- go get -u golang.org/x/tools/cmd/cover
- go get -u github.com/codecov/example-go
- go get -u google.golang.org/grpc
- go get -u github.com/golang/protobuf/proto
- go get -u golang.org/x/net/context
- python3 -V
- sudo apt-get install -y python3-pip
- sudo -H pip3 install -U matplotlib
- sudo -H pip3 install -U psycopg2
- sudo -H pip3 install -U sklearn
- sudo -H pip3 install coveralls
before_script:
- cd "$LZONE"; go install
script:
- go vet "$LZONE/..."
- export PYTHONPATH="$PYTHONPATH:$PWD"
- "$GOPATH/src/github.com/codecov/example-go/go.test.sh"
- cd "$API"; coverage run --include="$(pwd)/*.py" --omit="$(pwd)/test*.py" -m unittest discover
after_success:
- coveralls
- rm "$API/.coverage"
- bash <(curl -s https://codecov.io/bash)