forked from moby/hyperkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
39 lines (39 loc) · 1.27 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
general:
artifacts:
- build/hyperkit
- build/hyperkit.sym
- build/LICENSE
machine:
xcode:
version: "9.0"
environment:
GOPATH: "$HOME/go"
PROJECT_ROOT: "$GOPATH/src/github.com/moby/hyperkit"
PATH: "${PATH}:${GOPATH}/bin"
MACOSX_DEPLOYMENT_TARGET: "10.10"
OPAM_REPO: repo/darwin
OPAM_COMP: "4.03.0"
OPAMVERBOSE: "1"
OPAMYES: "1"
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
- opam init -v -n --comp="${OPAM_COMP}" --switch="${OPAM_COMP}" local "${OPAM_REPO}"
- opam config exec -- opam depext -i hyperkit
- opam config exec -- make clean
- opam config exec -- make all
- opam config exec -- make test
- opam config exec -- make test-qcow
# Go related steps
- mkdir -p $(dirname "$PROJECT_ROOT")
- ln -s $(pwd) "$PROJECT_ROOT"
- brew install golang
- (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
- opam config exec -- make -C repo list-licenses
- cat repo/OCAML-LICENSES >> build/LICENSE