-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathcircle.yml
More file actions
18 lines (16 loc) · 827 Bytes
/
circle.yml
File metadata and controls
18 lines (16 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker-compose-1.2.0"
- "~/docker-build-cache"
pre:
- if [[ ! -e ~/docker-compose-1.2.0 ]]; then mkdir -p ~/docker-compose-1.2.0 && curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s`-`uname -m` > ~/docker-compose-1.2.0/docker-compose && chmod +x ~/docker-compose-1.2.0/docker-compose; fi
override:
- if [[ -e ~/docker-build-cache/brikis98-ping-play-image.tar ]]; then docker load -i ~/docker-build-cache/brikis98-ping-play-image.tar; fi
- docker build -t brikis98/ping-play .
- mkdir -p ~/docker-build-cache && docker save brikis98/ping-play > ~/docker-build-cache/brikis98-ping-play-image.tar
test:
override:
- ~/docker-compose-1.2.0/docker-compose run web activator test