diff --git a/.circleci/config.yml b/.circleci/config.yml index 134b496..ab233d8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -90,17 +90,21 @@ image_build: &image_build paths: images image_boot: &image_boot - machine: - enabled: true - image: circleci/classic:latest # default Ubuntu 14.04 image + #machine: + # enabled: true + # image: circleci/classic:latest # default Ubuntu 14.04 image + macos: + xcode: "9.0" steps: - run: name: Configure $PATH - command: echo 'export PATH=~/workspace/bin-Linux:$PATH' >> $BASH_ENV + #command: echo 'export PATH=~/workspace/bin-Linux:$PATH' >> $BASH_ENV + command: echo 'export PATH=~/workspace/bin-Darwin:$PATH' >> $BASH_ENV - run: name: Install packages # ca-certificates are needed for attach_workspace (and git over https) - command: sudo apt-get update && sudo apt-get install -y ca-certificates curl expect git make openssh-client procps qemu xorriso + #command: sudo apt-get update && sudo apt-get install -y ca-certificates curl expect git make openssh-client procps qemu xorriso + command: brew install xorriso - attach_workspace: at: ~/workspace - checkout @@ -108,9 +112,6 @@ image_boot: &image_boot name: Test boot command: | set -x - free - cat /proc/meminfo - ls -lrt /dev/kvm* || true # Add ssh keys to the image. # TODO could this be integrated into linuxkit/mkimage-iso-* # such that all those options do not need to be repeated @@ -152,7 +153,7 @@ jobs: steps: - run: name: Create workspace - command: mkdir -p /workspace/bin-Linux + command: mkdir -p /workspace/bin-Linux /workspace/bin-Darwin - run: name: Install packages command: apt-get update && apt-get install -y ca-certificates curl openssh-client @@ -162,19 +163,26 @@ jobs: curl -fsSL -o /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.06.2-ce.tgz tar xfO /tmp/docker.tgz docker/docker > /workspace/bin-Linux/docker curl -fsSL -o /workspace/bin-Linux/linuxkit https://362-46932243-gh.circle-artifacts.com/0/linuxkit-linux-amd64 + curl -fsSL -o /workspace/bin-Darwin/linuxkithttps://362-46932243-gh.circle-artifacts.com/0/linuxkit-darwin-amd64 curl -fsSL -o /workspace/bin-Linux/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.7.0/manifest-tool-linux-amd64 curl -fsSL -o /workspace/bin-Linux/notary https://github.com/theupdateframework/notary/releases/download/v0.4.3/notary-Linux-amd64 + curl -fsSL -o /workspace/bin-Darwin/hyperkit https://452-55985023-gh.circle-artifacts.com/0/Users/distiller/hyperkit/build/hyperkit + curl -fsSL https://1066-58395340-gh.circle-artifacts.com/0/Users/distiller/vpnkit/vpnkit.tgz | tar zxfO - Contents/Resources/bin/vpnkit > /workspace/bin-Darwin/vpnkit + echo "Downloaded:" - sha256sum /workspace/bin-Linux/* + sha256sum /workspace/bin-Linux/* /workspace/bin-Darwin/* echo echo "Checking checksums" sha256sum -c <