forked from moby/hyperkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
32 lines (32 loc) · 1.03 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
general:
artifacts:
- build/hyperkit
- build/hyperkit.sym
- build/LICENSE
machine:
xcode:
version: "7.3"
environment:
GOPATH: "$HOME/go"
PROJECT_ROOT: "$GOPATH/src/github.com/docker/hyperkit"
PATH: "${PATH}:${GOPATH}/bin"
MACOSX_DEPLOYMENT_TARGET: "10.10"
test:
override:
- make clean
- make all
- test ! -s build/lib/mirage_block_ocaml.cmi || (echo "qcow libraries have been pre-installed in CI environment" && exit 1)
- make test
- brew install opam libev
- opam init --yes
- opam install --yes uri qcow.0.9.5 mirage-block-unix.2.7.0 ocamlfind conf-libev logs fmt mirage-unix
- make clean
- eval `opam config env` && make all
- make test
- eval `opam config env` && make test-qcow
# Go related steps
- mkdir -p $(dirname "$PROJECT_ROOT")
- ln -s $(pwd) "$PROJECT_ROOT"
- (cd go; make ci)
# LICENSE related steps
- find src -type f | xargs awk '/^\/\*-/{p=1;print FILENAME ":";print;next} p&&/^.*\*\//{print;print "";p=0};p' > build/LICENSE