forked from moby/hyperkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
60 lines (60 loc) · 2.12 KB
/
config.yml
File metadata and controls
60 lines (60 loc) · 2.12 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: 2
jobs:
build:
macos:
xcode: "12.5.1"
environment:
# OPAM seems to be quite unhappy without $TERM and Circle doesn't seem to set one.
TERM: vt100
MACOSX_DEPLOYMENT_TARGET: "10.11"
OPAM_COMP: 4.11.1
OPAMVERBOSE: 1
OPAMYES: 1
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- run:
name: Configure environment
command: |
echo 'export GOPATH=${HOME}/go' >> $BASH_ENV
echo 'export PROJECT_ROOT=${GOPATH}/src/github.com/moby/hyperkit' >> $BASH_ENV
echo 'export PATH=${PATH}:${GOPATH}/bin' >> $BASH_ENV
- run: env
- run: make clean
- run: make all
- run: test ! -s build/lib/mirage_block_ocaml.cmi || (echo "qcow libraries have been pre-installed in CI environment" && exit 1)
- run: make test
- run: brew install opam libev libffi pkg-config
- run: opam init -v -n --comp="${OPAM_COMP}" --switch="${OPAM_COMP}"
# Needed until the packages are released in ocaml/opam-repository
- run: opam pin add qcow.0.11.0 git://github.com/mirage/ocaml-qcow -n
- run: opam pin add qcow-tool.0.11.0 git://github.com/mirage/ocaml-qcow -n
- run: opam pin add hyperkit .
- run: opam config exec -- make clean
- run: opam config exec -- make all
- run: opam config exec -- make test
- run: opam config exec -- make test-qcow
# Go related steps
- run: mkdir -p $(dirname "$PROJECT_ROOT")
- run: ln -s $(pwd) "$PROJECT_ROOT"
- run: brew install golang
- run: (cd go; make ci)
- run: make artifacts
- store_artifacts:
path: build/hyperkit
destination: hyperkit
- store_artifacts:
path: build/hyperkit.sym
destination: hyperkit.sym
- store_artifacts:
path: build/COMMIT
destination: COMMIT
- store_artifacts:
path: build/LICENSE
destination: LICENSE
- store_artifacts:
path: test/disk.dmg
destination: test/disk.dmg
- store_artifacts:
path: test/disk.qcow2
destination: test/disk.qcow2