mirror of https://github.com/statping/statping
parent
d73a3c1d4e
commit
99e9efd824
|
@ -17,7 +17,7 @@ services:
|
|||
- mongodb
|
||||
|
||||
env:
|
||||
- VERSION=0.17
|
||||
- VERSION=0.18
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
|
@ -47,7 +47,7 @@ before_install:
|
|||
|
||||
after_success:
|
||||
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then /bin/bash -c ./build.sh; fi
|
||||
- curl -X POST $DOCKER > /dev/null
|
||||
- "curl -H 'Content-Type: application/json' --data '{\"source_type\": \"Tag\", \"source_name\": \"$VERSION\"}' -X POST $DOCKER > /dev/null"
|
||||
|
||||
before_script:
|
||||
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
|
||||
|
|
|
@ -3,10 +3,9 @@ FROM golang:1.10.3-alpine
|
|||
RUN apk update && apk add git g++
|
||||
|
||||
WORKDIR $GOPATH/src/github.com/hunterlong/statup/
|
||||
|
||||
COPY . $GOPATH/src/github.com/hunterlong/statup/
|
||||
RUN go get github.com/GeertJohan/go.rice/rice
|
||||
RUN go get -d -v
|
||||
COPY . $GOPATH/src/github.com/hunterlong/statup/
|
||||
RUN go get
|
||||
RUN rice embed-go
|
||||
RUN go install
|
||||
|
||||
|
|
|
@ -23,6 +23,9 @@ type Que struct {
|
|||
}
|
||||
|
||||
func AddEmail(email *types.Email) {
|
||||
if emailQue == nil {
|
||||
return
|
||||
}
|
||||
emailQue.Outgoing = append(emailQue.Outgoing, email)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue