-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2361ab
commit 2756a16
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |