forked from statping/statping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
74 lines (60 loc) · 1.35 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
os:
- linux
language: go
go: 1.12.1
go_import_path: github.com/hunterlong/statping
cache:
directories:
- $GOPATH/pkg/dep
- ~/.npm
- ~/.cache
- $GOPATH/src/github.com/hunterlong/statping/vendor
sudo: required
services:
- docker
- postgresql
- mysql
- mongodb
env:
global:
- PATH=/snap/bin:$PATH
- DB_HOST=localhost
- DB_USER=travis
- DB_PASS=
- DB_DATABASE=test
- GO_ENV=test
- STATPING_DIR=$GOPATH/src/github.com/hunterlong/statping
matrix:
allow_failures:
- go: master
fast_finish: true
notifications:
email: true
branches:
only:
- master
- dev
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
install:
- npm install -g sass
- npm install -g newman
- 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:
- travis_retry make test-all
- make test-api
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then make coverage; fi
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then make travis-build; fi
webhooks:
urls:
- $GITTER
on_success: change
on_failure: always
on_start: never