forked from statping-ng/statping-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (58 loc) · 1.47 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
os:
- linux
language: go
go:
- "1.10.x"
go_import_path: github.com/hunterlong/statup
install: true
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
before_deploy:
- git config --local user.name "hunterlong"
- git config --local user.email "[email protected]"
- make tag
deploy:
- provider: releases
api_key: $GH_TOKEN
file:
- "build/statup-osx-x64.tar.gz"
- "build/statup-osx-x32.tar.gz"
- "build/statup-linux-x64.tar.gz"
- "build/statup-linux-x32.tar.gz"
- "build/statup-linux-arm64.tar.gz"
- "build/statup-linux-arm7.tar.gz"
- "build/statup-linux-alpine.tar.gz"
- "build/statup-windows-x64.zip"
skip_cleanup: true
notifications:
email: false
before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- psql -c 'create database test;' -U postgres
- gem install sass
- make deps
- make install
script:
- make test
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then make coverage; fi
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then travis_wait 30 docker pull karalabe/xgo-latest; fi
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then make release; fi
after_deploy:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then make publish-dev; fi