046494dd68
* Implemented processing headers + added leveldb as a dependency. * version 0.7.0 * put glide get and install in build_cli section
82 lines
No EOL
2 KiB
YAML
82 lines
No EOL
2 KiB
YAML
version: 2
|
|
jobs:
|
|
install_deps:
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
docker:
|
|
- image: vidsyhq/go-builder:latest
|
|
steps:
|
|
- checkout
|
|
- run: go get github.com/Masterminds/glide
|
|
- run: glide install
|
|
- restore_cache:
|
|
key: dependency-cache-{{ .Revision }}
|
|
- run: BUILD=false /scripts/build.sh
|
|
- save_cache:
|
|
key: dependency-cache-{{ .Revision }}
|
|
paths:
|
|
- vendor
|
|
test:
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
docker:
|
|
- image: vidsyhq/go-builder:latest
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: dependency-cache-{{ .Revision }}
|
|
- run: make test
|
|
vet:
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
docker:
|
|
- image: vidsyhq/go-builder:latest
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: dependency-cache-{{ .Revision }}
|
|
- run: make vet
|
|
check_version:
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
docker:
|
|
- image: vidsyhq/go-builder:latest
|
|
steps:
|
|
- checkout
|
|
- run: make check-version
|
|
build_cli:
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
docker:
|
|
- image: vidsyhq/go-builder:latest
|
|
steps:
|
|
- checkout
|
|
- run: go get github.com/Masterminds/glide
|
|
- run: glide install
|
|
- run: make build
|
|
|
|
workflows:
|
|
version: 2
|
|
workflow:
|
|
jobs:
|
|
- install_deps:
|
|
filters:
|
|
tags:
|
|
only: /[0-9]+\.[0-9]+\.[0-9]+/
|
|
- test:
|
|
requires:
|
|
- install_deps
|
|
filters:
|
|
tags:
|
|
only: /[0-9]+\.[0-9]+\.[0-9]+/
|
|
- vet:
|
|
requires:
|
|
- install_deps
|
|
filters:
|
|
tags:
|
|
only: /[0-9]+\.[0-9]+\.[0-9]+/
|
|
- check_version:
|
|
filters:
|
|
branches:
|
|
ignore: master
|
|
- build_cli:
|
|
requires:
|
|
- install_deps
|
|
filters:
|
|
tags:
|
|
only: /[0-9]+\.[0-9]+\.[0-9]+/ |