From c3bde04cc11cff278abb302a112b9fc2c7b3d96c Mon Sep 17 00:00:00 2001 From: Joshua Humphries Date: Thu, 23 Sep 2021 09:20:48 -0400 Subject: [PATCH] use circleci instead of travis (#256) --- .circleci/config.yml | 62 ++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 24 ----------------- README.md | 2 +- 3 files changed, 63 insertions(+), 25 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..0f2fc45 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,62 @@ +shared_configs: + simple_job_steps: &simple_job_steps + - checkout + - run: + name: Run tests + command: | + make deps test + + +# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 +jobs: + build-1-14: + working_directory: ~/repo + docker: + - image: circleci/golang:1.14 + steps: *simple_job_steps + + build-1-15: + working_directory: ~/repo + docker: + - image: circleci/golang:1.15 + steps: *simple_job_steps + + build-1-16: + working_directory: ~/repo + docker: + - image: circleci/golang:1.16 + steps: + - checkout + - restore_cache: + keys: + - go-mod-v4-{{ checksum "go.sum" }} + - run: + name: Install Dependencies + command: go mod download + - save_cache: + key: go-mod-v4-{{ checksum "go.sum" }} + paths: + - "/go/pkg/mod" + - run: + name: Run tests + command: | + #mkdir -p /tmp/test-reports + #gotestsum --junitfile /tmp/test-reports/unit-tests.xml + make ci + #- store_test_results: + # path: /tmp/test-reports + + build-1-17: + working_directory: ~/repo + docker: + - image: circleci/golang:1.17 + steps: *simple_job_steps + +workflows: + pr-build-test: + jobs: + - build-1-14 + - build-1-15 + - build-1-16 + - build-1-17 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 80c32ca..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: go -sudo: false - -matrix: - include: - - go: 1.11.x - env: GO111MODULE=on - - go: 1.12.x - env: GO111MODULE=off - - go: 1.12.x - env: GO111MODULE=on - - go: 1.13.x - env: - - GO111MODULE=on - - VET=1 - - go: 1.14.x - env: GO111MODULE=on - - go: 1.15.x - env: GO111MODULE=on - - go: tip - env: GO111MODULE=on - -script: - - if [[ "$VET" = 1 ]]; then make ci; else make deps test; fi diff --git a/README.md b/README.md index e932142..6c647d3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # gRPCurl -[![Build Status](https://travis-ci.com/fullstorydev/grpcurl.svg?branch=master)](https://travis-ci.com/github/fullstorydev/grpcurl/branches) +[![Build Status](https://circleci.com/gh/fullstorydev/grpcurl/tree/master.svg?style=svg)](https://circleci.com/gh/fullstorydev/grpcurl/tree/master) [![Go Report Card](https://goreportcard.com/badge/github.com/fullstorydev/grpcurl)](https://goreportcard.com/report/github.com/fullstorydev/grpcurl) `grpcurl` is a command-line tool that lets you interact with gRPC servers. It's