2018-02-01 18:54:23 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
install_deps:
|
|
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
|
|
docker:
|
|
|
|
- image: vidsyhq/go-builder:latest
|
2018-03-15 20:45:37 +00:00
|
|
|
environment:
|
|
|
|
BUILD: false
|
2018-02-01 18:54:23 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
2018-03-15 20:45:37 +00:00
|
|
|
key: dependency-cache-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
|
|
|
- run: /scripts/build.sh
|
2018-02-01 18:54:23 +00:00
|
|
|
- save_cache:
|
2018-03-15 20:45:37 +00:00
|
|
|
key: dependency-cache-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
2018-02-01 18:54:23 +00:00
|
|
|
paths:
|
|
|
|
- vendor
|
2018-03-15 20:45:37 +00:00
|
|
|
- /go/pkg
|
2018-02-01 18:54:23 +00:00
|
|
|
test:
|
|
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
|
|
docker:
|
|
|
|
- image: vidsyhq/go-builder:latest
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
2018-03-15 20:45:37 +00:00
|
|
|
key: dependency-cache-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
2018-02-01 18:54:23 +00:00
|
|
|
- run: make test
|
|
|
|
vet:
|
|
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
|
|
docker:
|
|
|
|
- image: vidsyhq/go-builder:latest
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
2018-03-15 20:45:37 +00:00
|
|
|
key: dependency-cache-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
2018-02-01 18:54:23 +00:00
|
|
|
- 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
|
2018-03-15 20:45:37 +00:00
|
|
|
- restore_cache:
|
|
|
|
key: dependency-cache-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
2018-02-01 18:54:23 +00:00
|
|
|
- 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:
|
2018-03-15 20:45:37 +00:00
|
|
|
only: /[0-9]+\.[0-9]+\.[0-9]+/
|