forked from movabletype/movabletype
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
28 lines (22 loc) · 815 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
machine:
services:
- docker
checkout:
post:
- t/git-mtime t/cpanfile t/ldif/cn=config.ldif t/ldif/domain1_example_jp.ldif t/ldif/domain2_example_jp.ldif t/ldif/example_com.ldif t/ldif/example_jp.ldif
dependencies:
cache_directories:
- "~/docker"
override:
- if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; fi
- docker build -t mt .
- mkdir -p ~/docker; docker save mt > ~/docker/image.tar
test:
pre:
- cp ./t/mysql-test.cfg ./mt-config.cgi
- rm t/34-sqlite.t
- rm t/62-asset-editor.t
- rm t/90-podcoverage.t
- rm plugins/MultiBlog/t/02.tags.t
override:
- docker run -v $PWD:/var/www/mt -w /var/www/mt mt bash -c "service mysqld start & sleep 10 && service memcached start & sleep 10 && prove -s ./t ./plugins/*/t && phpunit"