Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
ci: only build releases on tags (#72)
Browse files Browse the repository at this point in the history
* ci: run on tags

* ci: create minimal non-working yaml

* ci: mvp it

* ci: restore yaml

* ci: split out release job

* ci: filter tags

* ci: fix regex

* ci: filter tags

* ci: fix regex
  • Loading branch information
soc1c committed Jun 18, 2019
1 parent d8c1243 commit bf9a53f
Showing 1 changed file with 53 additions and 21 deletions.
74 changes: 53 additions & 21 deletions .circleci/config.yml
@@ -1,6 +1,41 @@
version: 2
jobs:
build-linux-go-1.12:
working_directory: ~/go-ethereum
docker:
- image: circleci/golang:1.12
steps:
- checkout
- restore_cache:
keys:
- go-mod-v4-{{ checksum "go.sum" }}
- run:
name: Compile Binaries
command: make build
- save_cache:
key: go-mod-v4-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
tests-linux-go-1.12:
working_directory: ~/go-ethereum
docker:
- image: circleci/golang:1.12
steps:
- checkout
- restore_cache:
keys:
- go-mod-v4-{{ checksum "go.sum" }}
- run:
name: Initialize Ethereum Testsuite
command: git submodule update --init --recursive
- run:
name: Run All Tests
command: make test
- save_cache:
key: go-mod-v4-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
release-linux-go-1.12:
working_directory: ~/go-ethereum
docker:
- image: circleci/golang:1.12
Expand Down Expand Up @@ -38,29 +73,26 @@ jobs:
key: go-mod-v4-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
tests-linux-go-1.12:
working_directory: ~/go-ethereum
docker:
- image: circleci/golang:1.12
steps:
- checkout
- restore_cache:
keys:
- go-mod-v4-{{ checksum "go.sum" }}
- run:
name: Initialize Ethereum Testsuite
command: git submodule update --init --recursive
- run:
name: Run All Tests
command: make test
- save_cache:
key: go-mod-v4-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"

workflows:
version: 2
release:
jobs:
- tests-linux-go-1.12
- build-linux-go-1.12
- build-linux-go-1.12:
filters:
tags:
only: /.*/
- tests-linux-go-1.12:
requires:
- build-linux-go-1.12
filters:
tags:
only: /.*/
- release-linux-go-1.12:
requires:
- tests-linux-go-1.12
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/

0 comments on commit bf9a53f

Please sign in to comment.