diff --git a/.circleci/config.yml b/.circleci/config.yml index 134b496..46b89da 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -90,27 +90,34 @@ 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 + - run: + name: Versions + command: | + set -x + ~/workspace/bin-Darwin/linuxkit version + ~/workspace/bin-Darwin/vpnkit version - run: 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,29 +159,38 @@ 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 - run: name: Fetch binaries command: | + set -x 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/linuxkit https://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 -o /tmp/vpnkit.tgz https://1066-58395340-gh.circle-artifacts.com/0/Users/distiller/vpnkit/vpnkit.tgz + tar xfO /tmp/vpnkit.tgz 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 <