badguardhome/.travis.yml

34 lines
525 B
YAML
Raw Normal View History

2018-08-30 15:16:37 +00:00
language: go
sudo: false
go:
- 1.11.x
- 1.x
2018-08-30 15:16:37 +00:00
2018-11-09 15:19:55 +00:00
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
- $HOME/Library/Caches/go-build
os:
- linux
- osx
2019-01-04 18:00:06 +00:00
before_install:
- nvm install node
- npm install -g npm
install:
- npm --prefix client install
2018-08-30 15:16:37 +00:00
script:
2019-01-04 18:00:06 +00:00
- node -v
- npm -v
2019-01-25 09:55:13 +00:00
# Run tests
- go test -race -v -bench=. -coverprofile=coverage.txt -covermode=atomic ./...
# Make
- make build/static/index.html
- make
2018-08-30 15:16:37 +00:00
2019-01-25 09:55:13 +00:00
after_success:
- bash <(curl -s https://codecov.io/bash)