forked from peterayeni/django-kong-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
41 lines (40 loc) · 1.19 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
machine:
services:
- docker
python:
version: 2.7.6
environment:
KONG_ADMIN_URL: http://localhost:8001
post:
- pyenv global pypy-2.4.0 2.7.9 3.3.3 3.4.2
dependencies:
cache_directories:
- "~/docker"
pre:
- pip install -U pip
override:
- pip install -U tox==2.1.1
- docker version
- docker info
- if [[ -e ~/docker/cassandra.tar ]]; then docker load --input ~/docker/cassandra.tar; fi
- docker pull vikingco/cassandra:latest
- mkdir -p ~/docker; docker save vikingco/cassandra:latest > ~/docker/cassandra.tar
- if [[ -e ~/docker/kong.tar ]]; then docker load --input ~/docker/kong.tar; fi
- docker pull vikingco/kong:latest
- mkdir -p ~/docker; docker save vikingco/kong:latest > ~/docker/kong.tar
post:
- >
docker run -d
-p 9042:9042
--name cassandra
vikingco/cassandra:latest; sleep 10
- >
docker run -d
-p 8000:8000
-p 8001:8001
--name kong
--link cassandra:cassandra
vikingco/kong:latest; sleep 5
test:
override:
- tox