statping-ng/.travis.yml

65 lines
1.1 KiB
YAML

os:
- linux
language: go
go:
- "1.10.x"
go_import_path: github.com/hunterlong/statup
cache:
directories:
- $GOPATH/pkg/dep
sudo: required
services:
- docker
- postgresql
- mysql
- mongodb
env:
global:
- DB_HOST=localhost
- DB_USER=travis
- DB_PASS=
- DB_DATABASE=test
- GO_ENV=test
- STATUP_DIR=$GOPATH/src/github.com/hunterlong/statup
matrix:
allow_failures:
- go: master
fast_finish: true
notifications:
email: true
branches:
except:
- /^v\d/
before_install:
- curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
- gem install sass
install:
- make dev-deps
- make dep
- make install
before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- psql -c 'create database test;' -U postgres
script:
- make test-all
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then make coverage; fi
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then make travis-build; fi
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then make publish-dev; fi