Skip to content

Commit

Permalink
Add CircleCI config file
Browse files Browse the repository at this point in the history
  • Loading branch information
philippgille committed Jul 19, 2019
1 parent e2361ab commit 2756a16
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2756a16

Please sign in to comment.