From dd9d4f804aeaaec6d56bd2970436b11d705aa292 Mon Sep 17 00:00:00 2001 From: Oli Evans Date: Tue, 22 Sep 2020 09:47:33 +0100 Subject: [PATCH] chore: add circle ci (#20) adds jobs for running tests and for building in docker. We can make this stricter by adding go vet and friends if wanted. The next step with this is to get the tests running with the docker compose config, but I want to land the simple version first. License: MIT Signed-off-by: Oli Evans --- .circleci/config.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..a640d0f8d --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,35 @@ +version: 2.1 + +executors: + golang: + docker: + - image: cimg/go:1.15.2 + +jobs: + test: + executor: golang + steps: + - checkout + - run: sudo apt-get update + - run: sudo apt-get install -y pkg-config jq mesa-opencl-icd ocl-icd-opencl-dev + - run: make deps + - run: make build + - run: make testshort + + docker-build: + executor: golang + steps: + - checkout + - setup_remote_docker: + version: "18.09.3" + - run: + name: Build Docker image + command: | + docker build -t filecoin/sentinel-visor . + +workflows: + version: 2 + check: + jobs: + - test + - docker-build