-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
34 lines (30 loc) · 975 Bytes
/
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
machine:
services:
- docker
general:
build_dir: "2.0"
dependencies:
cache_directories:
- "~/docker"
override:
- docker info
- if [[ -e ~/docker/image.tar ]]; then docker load --input ~/docker/image.tar; fi
- docker build -t blacktop_cuckoo .
- mkdir -p ~/docker; docker save blacktop_cuckoo > ~/docker/image.tar
test:
override:
- docker run -d --name mongo mongo
- docker run -d --name postgres -e POSTGRES_PASSWORD=cuckoo postgres
- docker run -d --name cuckoo-api --link postgres -p 8000:1337 blacktop_cuckoo api
- docker run -d --link mongo -p 31337:31337 blacktop_cuckoo web; sleep 5
- curl --retry 10 --retry-delay 5 -v http://localhost:8000/cuckoo/status
- curl --retry 10 --retry-delay 5 -v http://localhost:31337
deployment:
# master:
# branch: master
# commands:
# - eval $(docker run gliderlabs/pagebuilder circleci-cmd)
release:
branch: release
commands:
- make release