pull/10/head v0.18
Hunter Long 2018-06-23 12:21:00 -07:00
parent d73a3c1d4e
commit 99e9efd824
3 changed files with 7 additions and 5 deletions

View File

@ -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;'

View File

@ -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

View File

@ -23,6 +23,9 @@ type Que struct {
}
func AddEmail(email *types.Email) {
if emailQue == nil {
return
}
emailQue.Outgoing = append(emailQue.Outgoing, email)
}