-
Notifications
You must be signed in to change notification settings - Fork 15
/
circle.yml
26 lines (26 loc) · 1.11 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
machine:
services:
- docker
environment:
GO15VENDOREXPERIMENT: 1
checkout:
post:
- rm -rf ~/.go_workspace/src/github.com/zencoder
- mkdir -p ~/.go_workspace/src/github.com/zencoder
- cp -R ~/disque-go ~/.go_workspace/src/github.com/zencoder/disque-go
dependencies:
pre:
- sudo apt-get remove --purge golang
- sudo rm -rf /usr/local/go/
- mkdir /tmp/go && wget 'https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz' -O /tmp/go/go1.5.3.linux-amd64.tar.gz
- sudo tar -xzf /tmp/go/go1.5.3.linux-amd64.tar.gz -C /usr/local
- wget 'https://github.com/Masterminds/glide/releases/download/0.8.3/glide-0.8.3-linux-amd64.tar.gz' -O /tmp/go/glide-0.8.3-linux-amd64.tar.gz
- tar -xzf /tmp/go/glide-0.8.3-linux-amd64.tar.gz -C /tmp/go
- sudo cp /tmp/go/linux-amd64/glide /usr/local/bin/glide
override:
- cd ~/.go_workspace/src/github.com/zencoder/disque-go && glide install
- docker pull quay.io/skidder/disque:latest
- docker run -d -p 7711:7711 quay.io/skidder/disque:latest
test:
override:
- cd ~/.go_workspace/src/github.com/zencoder/disque-go && make test