mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
b41e14e0f0
* Adds struct for config settings * Bumps version * Move settings around * Only push version tag up not whole branch as well * Move config into own path and add test and main nets * Update config for timeouts * Convert to yaml
83 lines
2.2 KiB
YAML
83 lines
2.2 KiB
YAML
version: 2
|
|
jobs:
|
|
install_deps:
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
docker:
|
|
- image: vidsyhq/go-builder:latest
|
|
environment:
|
|
BUILD: false
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: dependency-cache-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
|
- run: /scripts/build.sh
|
|
- save_cache:
|
|
key: dependency-cache-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
|
paths:
|
|
- vendor
|
|
- /go/pkg
|
|
test:
|
|
working_directory: /go/src/github.com/CityOfZion/neo-go
|
|
docker:
|
|
- image: vidsyhq/go-builder:latest
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: dependency-cache-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
|
- 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-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
|
- 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
|
|
- restore_cache:
|
|
key: dependency-cache-{{ checksum "Gopkg.toml" }}-{{ checksum "VERSION" }}
|
|
- 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]+/
|