Put CI in own job

This commit is contained in:
Neil Alexander 2020-09-27 13:55:00 +01:00
parent f0275b01b6
commit 4d1bb40bad
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -3,6 +3,19 @@
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2.1
jobs:
verify:
docker:
- image: circleci/golang:1.14.1
steps:
- checkout
- run:
name: Run golangci-lint
command: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.31.0
golangci-lint run
build-linux:
docker:
- image: circleci/golang:1.14.1
@ -33,12 +46,6 @@ jobs:
sudo apt-get install -y rpm file
mkdir -p ~/rpmbuild/BUILD ~/rpmbuild/RPMS ~/rpmbuild/SOURCES ~/rpmbuild/SPECS ~/rpmbuild/SRPMS
- run:
name: Run golangci-lint
command: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.31.0
golangci-lint run
- run:
name: Test debug builds
command: |