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

Commit

Permalink
⭕️
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed Apr 28, 2018
1 parent 508808c commit f77af5b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 49 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
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}/
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

39 changes: 5 additions & 34 deletions Dockerfile
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"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/BotBotMe/botbot-bot.png)](https://travis-ci.org/BotBotMe/botbot-bot)
[![Build Status](https://img.shields.io/circleci/project/github/BotBotMe/botbot-bot.svg)](https://circleci.com/gh/BotBotMe/botbot-bot)


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

Expand Down

0 comments on commit f77af5b

Please sign in to comment.