Skip to content
This repository was archived by the owner on Nov 26, 2018. It is now read-only.

Commit f77af5b

Browse files
committed
⭕️
1 parent 508808c commit f77af5b

File tree

4 files changed

+39
-49
lines changed

4 files changed

+39
-49
lines changed

.circleci/config.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: golang:1.10
6+
7+
working_directory: /go/src/github.com/BotBotMe/botbot-bot
8+
9+
steps:
10+
- checkout
11+
- run:
12+
name: Get Dependencies
13+
command: go get -v .
14+
- run:
15+
name: Test
16+
command: go test -v -race ./...
17+
- run:
18+
name: Build
19+
command: |
20+
go build -v .
21+
sha256sum botbot-bot
22+
- store_artifacts:
23+
path: botbot-bot
24+
prefix: bin
25+
- run:
26+
name: Push to S3
27+
branches:
28+
only:
29+
- master
30+
command: |
31+
apt-get update -q && apt-get install -y awscli
32+
aws s3 cp botbot-bot s3://${S3_BUCKET}/

.travis.yml

-14
This file was deleted.

Dockerfile

+5-34
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,7 @@
1-
FROM ubuntu:14.04
2-
MAINTAINER Yann Malet <[email protected]>
1+
FROM golang
32

4-
RUN locale-gen en_US.UTF-8
5-
ENV LANG en_US.UTF-8
6-
ENV LANGUAGE en_US:en
7-
ENV LC_ALL en_US.UTF-8
8-
ENV PATH /usr/src/go/bin:$PATH
9-
ENV GOPATH /go
10-
ENV PATH /go/bin:$PATH
11-
ENV GOLANG_VERSION 1.3.1
3+
WORKDIR /go/src/github.com/BotBotMe/botbot-bot
4+
COPY . .
5+
RUN go get -v . && go build -v -o .
126

13-
14-
# SCMs for "go get", gcc for cgo
15-
RUN DEBIAN_FRONTEND=noninteractive apt-get update
16-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
17-
ca-certificates curl gcc libc6-dev \
18-
bzr git mercurial
19-
RUN rm -rf /var/lib/apt/lists/*
20-
RUN curl -sSL http://golang.org/dl/go$GOLANG_VERSION.src.tar.gz | tar -v -C /usr/src -xz
21-
22-
RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
23-
24-
RUN mkdir -p /go/src
25-
WORKDIR /go
26-
27-
ENV GOPACKAGE github.com/BotBotMe/botbot-bot
28-
# Copy the local package files to the container's workspace.
29-
ADD . /go/src/$GOPACKAGE
30-
31-
# Build the $GOPACKAGE command inside the container.
32-
# (You may fetch or manage dependencies here,
33-
# either manually or with a tool like "godep".)
34-
RUN go get $GOPACKAGE
35-
36-
ENTRYPOINT /go/bin/botbot-bot -logtostderr=true
7+
CMD ["./botbot-bot"]

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![Build Status](https://travis-ci.org/BotBotMe/botbot-bot.png)](https://travis-ci.org/BotBotMe/botbot-bot)
1+
[![Build Status](https://img.shields.io/circleci/project/github/BotBotMe/botbot-bot.svg)](https://circleci.com/gh/BotBotMe/botbot-bot)
2+
23

34
The bot used in botbot.me is a Go (1.2+) program. To install:
45

0 commit comments

Comments
 (0)