From 2756a16411747a0df9c4b4ffd8c804588deca544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Gill=C3=A9?= Date: Fri, 19 Jul 2019 22:57:02 +0200 Subject: [PATCH] Add CircleCI config file --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..cfb3300 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,31 @@ +version: 2 # use CircleCI 2.0 +jobs: # basic units of work in a run + build: # runs not using Workflows must have a `build` job as entry point + docker: # run the steps with Docker + # CircleCI Go images available at: https://hub.docker.com/r/circleci/golang/ + - image: circleci/golang:1.12 + + environment: # environment variables for the build itself + GO111MODULE: "on" + + steps: # steps that comprise the `build` job + - checkout # check out source code to working directory + - run: go version + - run: go env + + - run: sudo apt-get install upx + + # Build + - run: go build -v + - run: build/build.sh + + # Test + - run: ./serve -h + - run: ./serve -v + - run: ./serve -t + - run: build/artifacts/serve_v*_Linux_x64 -h + - run: build/artifacts/serve_v*_Linux_x64 -v + - run: build/artifacts/serve_v*_Linux_x64 -t + + - store_artifacts: + path: build/artifacts