Skip to content

Commit

Permalink
switch to CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
powerman committed Nov 15, 2018
1 parent a1645c8 commit d8b4425
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 27 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2.1

jobs:
build:
docker:
- image: circleci/golang:1
environment:
GOLANGCI_LINT_VER: 1.12.2
steps:
- checkout
- run:
name: Initialize
command: |
rmdir /go/*/ # fix owner/permission
env | grep _VER | sort > /tmp/tools.ver
- restore_cache:
keys:
- v1-{{ checksum "/tmp/tools.ver" }}-{{ checksum "go.mod" }}-{{ .Branch }}
- v1-{{ checksum "/tmp/tools.ver" }}-{{ checksum "go.mod" }}-
- v1-{{ checksum "/tmp/tools.ver" }}-
- v1-
- run:
name: Install tools
command: |
cd /
golangci-lint --version | tee /dev/stderr | grep -wq $GOLANGCI_LINT_VER ||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v$GOLANGCI_LINT_VER
go get -v github.com/mattn/goveralls
sudo apt install socat
- run: go test -mod=readonly -v -race ./...
- run: golangci-lint run
- run: goveralls -service=circle-ci
- save_cache:
when: always
key: v1-{{ checksum "/tmp/tools.ver" }}-{{ checksum "go.mod" }}-{{ .Branch }}
paths:
- /go/bin/
- /go/pkg/
- /go/src/
- ~/.cache/go-build/
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Go support for Narada framework

[![GoDoc](https://godoc.org/github.com/powerman/narada-go/narada?status.svg)](http://godoc.org/github.com/powerman/narada-go/narada) [![Build Status](https://travis-ci.org/powerman/narada-go.svg)](https://travis-ci.org/powerman/narada-go) [![Coverage Status](https://coveralls.io/repos/powerman/narada-go/badge.svg?branch=master&service=github)](https://coveralls.io/github/powerman/narada-go?branch=master)
[![GoDoc](https://godoc.org/github.com/powerman/narada-go/narada?status.svg)](http://godoc.org/github.com/powerman/narada-go/narada) [![CircleCI](https://circleci.com/gh/powerman/narada-go.svg?style=svg)](https://circleci.com/gh/powerman/narada-go) [![Coverage Status](https://coveralls.io/repos/powerman/narada-go/badge.svg?branch=master&service=github)](https://coveralls.io/github/powerman/narada-go?branch=master)

## Installation

Expand Down

0 comments on commit d8b4425

Please sign in to comment.