This repository has been archived by the owner on Jun 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
47 lines (47 loc) · 1.9 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
language: go
dist: trusty
sudo: required
go:
- 1.7.4
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/9992cd0d36a6ba9bb40b
on_success: change
on_failure: always
on_start: never
before_install:
- pip install smtpd-tls
- python -m smtpd_tls -n -c DebuggingServer --starttls --keyfile=./tests/server.pem localhost:2500 &
- sudo apt-get install -y rpm
- gem install fpm
- go get github.com/golang/lint/golint
- go get -v github.com/modocache/gover
- go get -v golang.org/x/tools/cmd/cover
- go get -v github.com/mattn/goveralls
- go get -v github.com/onsi/ginkgo/ginkgo
- go get -v github.com/onsi/gomega
- go get -v github.com/onsi/gomega/gstruct
install:
- make lint
- make test
- gover
- goveralls -coverprofile=gover.coverprofile -service=travis-ci
script:
- make packages
before_deploy:
- export RELEASE_PKG_TAR=$(ls build/moira-notifier*.tar.gz)
- export RELEASE_PKG_RPM=$(ls build/moira-notifier*.rpm)
- export RELEASE_PKG_DEB=$(ls build/moira-notifier*.deb)
deploy:
provider: releases
api_key:
secure: kuNhaWPMfrzfLblZShTW6qD8K88l2Gmwc1AcmW74LqpqIgzjAP33DVvRP2vHLpRE1tDWB+79k1Z6sKEij+tbQfJ+KI31dzcLxB3TtCqnaxX3wa6oTlgvv3lVWJavKIZ4I9W8EJqQUa+FTIoAuTPpr8hNh5STCIztPmVX0uAJ+RpcNhiP/rJGL+Q7CFUmkJSc9i4wztULMVb1W/zBDYKFc8c49yb9ZkrqbCLLXr9itlMRSx5Dhpq/ad6rIXcrcpTL5Qf2Bs0TluSjl0dow2wbQuQci/DcG0gSDZIsaT3FOtBjDK1oc5hkQfzkMumZIBj4AHue0rtag61OfdDzvQUJe6WwCLfhtCYyqi1I7VE2wPK5WoroRB9S8aBn0UOWbnef3gXnXZhJisMhsXOaElKddKs1Sz1OvzVwe1vRWDAThjQmG59iQaTql9W26qhPc4ATr87PTWrFJZVe3Ty8++pU9yAxGCiGoNG1SVAwz382b0GtkOkrGDCLNukek+pI/MZEAc4eMbejIFoX5WgR2k34ANBOry1gBB/TMPvEhSzxogzg4YHjeuz1Y04g/O8PHJudlMe1BtX3b7ZdBEAY/4fC5oCz0sVi08uEiC/CG5CcpVHmXgWNPipJDvr9EnFnM5HLujxyDSM/WvHUx2VtPigQKG8aUILt05McO9FCHEESkIE=
file:
- "${RELEASE_PKG_TAR}"
- "${RELEASE_PKG_RPM}"
- "${RELEASE_PKG_DEB}"
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_GO_VERSION = 1.7.4