This repository has been archived by the owner on Nov 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: golang:1.10 | ||
|
||
working_directory: /go/src/github.com/BotBotMe/botbot-bot | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: Get Dependencies | ||
command: go get -v . | ||
- run: | ||
name: Test | ||
command: go test -v -race ./... | ||
- run: | ||
name: Build | ||
command: | | ||
go build -v . | ||
sha256sum botbot-bot | ||
- store_artifacts: | ||
path: botbot-bot | ||
prefix: bin | ||
- run: | ||
name: Push to S3 | ||
branches: | ||
only: | ||
- master | ||
command: | | ||
apt-get update -q && apt-get install -y awscli | ||
aws s3 cp botbot-bot s3://${S3_BUCKET}/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,7 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER Yann Malet <[email protected]> | ||
FROM golang | ||
|
||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
ENV PATH /usr/src/go/bin:$PATH | ||
ENV GOPATH /go | ||
ENV PATH /go/bin:$PATH | ||
ENV GOLANG_VERSION 1.3.1 | ||
WORKDIR /go/src/github.com/BotBotMe/botbot-bot | ||
COPY . . | ||
RUN go get -v . && go build -v -o . | ||
|
||
|
||
# SCMs for "go get", gcc for cgo | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
ca-certificates curl gcc libc6-dev \ | ||
bzr git mercurial | ||
RUN rm -rf /var/lib/apt/lists/* | ||
RUN curl -sSL http://golang.org/dl/go$GOLANG_VERSION.src.tar.gz | tar -v -C /usr/src -xz | ||
|
||
RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1 | ||
|
||
RUN mkdir -p /go/src | ||
WORKDIR /go | ||
|
||
ENV GOPACKAGE github.com/BotBotMe/botbot-bot | ||
# Copy the local package files to the container's workspace. | ||
ADD . /go/src/$GOPACKAGE | ||
|
||
# Build the $GOPACKAGE command inside the container. | ||
# (You may fetch or manage dependencies here, | ||
# either manually or with a tool like "godep".) | ||
RUN go get $GOPACKAGE | ||
|
||
ENTRYPOINT /go/bin/botbot-bot -logtostderr=true | ||
CMD ["./botbot-bot"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters