sliproad/.circleci/config.yml

42 lines
866 B
YAML
Raw Normal View History

2020-04-06 22:51:56 +01:00
version: 2.1
orbs:
upx: circleci/upx@1.0.1
jobs:
build:
docker:
- image: cimg/go:1.14
steps:
- checkout
- restore_cache:
keys:
2020-04-03 13:53:25 +01:00
- go-mod-{{ checksum "go.sum" }}-v2
- go-mod-{{ checksum "go.sum" }}
- go-mod
2020-04-06 22:51:56 +01:00
- upx/install
- run:
command: make dist
- store_artifacts:
path: build
- save_cache:
2020-04-03 13:53:25 +01:00
key: go-mod-{{ checksum "go.sum" }}-v2
paths:
2020-04-03 13:53:25 +01:00
- /home/circleci/go/pkg/mod
test:
docker:
- image: cimg/go:1.14
steps:
- checkout
- restore_cache:
keys:
2020-04-03 13:53:25 +01:00
- go-mod-{{ checksum "go.sum" }}-v2
- go-mod-{{ checksum "go.sum" }}
- go-mod
- run:
command: make test
workflows:
version: 2
build-and-test:
jobs:
- build
- test