mirror of https://github.com/statping/statping
parent
d73a3c1d4e
commit
99e9efd824
|
@ -17,7 +17,7 @@ services:
|
||||||
- mongodb
|
- mongodb
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- VERSION=0.17
|
- VERSION=0.18
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
|
@ -47,7 +47,7 @@ before_install:
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then /bin/bash -c ./build.sh; fi
|
- 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:
|
before_script:
|
||||||
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
|
- 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++
|
RUN apk update && apk add git g++
|
||||||
|
|
||||||
WORKDIR $GOPATH/src/github.com/hunterlong/statup/
|
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 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 rice embed-go
|
||||||
RUN go install
|
RUN go install
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,9 @@ type Que struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func AddEmail(email *types.Email) {
|
func AddEmail(email *types.Email) {
|
||||||
|
if emailQue == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
emailQue.Outgoing = append(emailQue.Outgoing, email)
|
emailQue.Outgoing = append(emailQue.Outgoing, email)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue