-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
41 lines (37 loc) · 1.01 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
general:
artifacts:
- "images"
machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker"
- "~/deps"
pre:
- if [[ ! -e ~/deps/bats_v0.4.0.tar.gz ]]; then mkdir -p ~/deps; curl -sSL -o ~/deps/bats_v0.4.0.tar.gz https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz; fi
- tar -xf ~/deps/bats_v0.4.0.tar.gz
- sudo bats-0.4.0/install.sh /usr/local
override:
- docker info
- if [[ -e ~/docker/builder.tar ]]; then docker load --input ~/docker/builder.tar; fi
- ./build.bash:
parallel: true
files:
- versions/**/options
- mkdir -p ~/docker; docker save sphinxsearch-builder > ~/docker/builder.tar
- docker images
test:
override:
- ./build.bash test:
parallel: true
files:
- versions/**/options
deployment:
hub:
branch: master
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD:
parallel: true
- ./build.bash push:
parallel: true