Skip to content

Commit

Permalink
chore: add circle ci (#20)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
olizilla authored Sep 22, 2020
1 parent d14002b commit dd9d4f8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dd9d4f8

Please sign in to comment.