machine: services: - docker environment: GODIST: "go1.6.2.linux-amd64.tar.gz" post: - mkdir -p download - test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST - sudo rm -rf /usr/local/go - sudo tar -C /usr/local -xzf download/$GODIST dependencies: cache_directories: - "~/docker" - ~/download override: - ./test.sh save: # building the docker images can take a long time, hence caching timeout: 1800 test: override: - bash circle-test.sh: parallel: true