mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +03:00
Put CI in own job
This commit is contained in:
parent
f0275b01b6
commit
4d1bb40bad
1 changed files with 13 additions and 6 deletions
|
@ -3,6 +3,19 @@
|
||||||
# Check https://circleci.com/docs/2.0/language-go/ for more details
|
# Check https://circleci.com/docs/2.0/language-go/ for more details
|
||||||
version: 2.1
|
version: 2.1
|
||||||
jobs:
|
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:
|
build-linux:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.14.1
|
- image: circleci/golang:1.14.1
|
||||||
|
@ -33,12 +46,6 @@ jobs:
|
||||||
sudo apt-get install -y rpm file
|
sudo apt-get install -y rpm file
|
||||||
mkdir -p ~/rpmbuild/BUILD ~/rpmbuild/RPMS ~/rpmbuild/SOURCES ~/rpmbuild/SPECS ~/rpmbuild/SRPMS
|
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:
|
- run:
|
||||||
name: Test debug builds
|
name: Test debug builds
|
||||||
command: |
|
command: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue