This repository was archived by the owner on Nov 26, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +39
-49
lines changed Expand file tree Collapse file tree 4 files changed +39
-49
lines changed Original file line number Diff line number Diff line change 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)/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 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
34The bot used in botbot.me is a Go (1.2+) program. To install:
45
You can’t perform that action at this time.
0 commit comments