Skip to content

Commit

Permalink
Refactor/appsync client (#5)
Browse files Browse the repository at this point in the history
* Refactor: AppSync client
  • Loading branch information
mhd999 authored Feb 28, 2020
1 parent eee005f commit 7c2da00
Show file tree
Hide file tree
Showing 17 changed files with 388 additions and 525 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ vendor
bin

# test file
out
input.json
test
resolvers-test.yml
schema-test.graphql
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ services:
matrix:
include:
- os: linux
go: 1.11.x
go: 1.13.x
env:
- TARGET=linux
- ARCH=amd64
notifications:
email: false
before_install:
- pip install --user awscli
- curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
install:
- dep ensure
script:
- make build
- make build
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.11 as builder
FROM golang:1.13.1 as builder

LABEL MAINTAINER="telia-oss"

Expand Down
71 changes: 0 additions & 71 deletions Gopkg.lock

This file was deleted.

34 changes: 0 additions & 34 deletions Gopkg.toml

This file was deleted.

13 changes: 4 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ SRC = $(shell find . -type f -name '*.go' -not -path "./vendor/*")

default: test

install:
curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $(GOPATH)/bin/dep
chmod +x $(GOPATH)/bin/dep
dep ensure -v

build: test install
build: test
@echo "== Build =="
env GOOS=$(TARGET) GOARCH=$(ARCH) CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/in in/in.go
env GOOS=$(TARGET) GOARCH=$(ARCH) CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/check check/check.go
env GOOS=$(TARGET) GOARCH=$(ARCH) CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/out main.go
env GOOS=$(TARGET) GOARCH=$(ARCH) CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/in cmd/in/main.go
env GOOS=$(TARGET) GOARCH=$(ARCH) CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/check cmd/check/main.go
env GOOS=$(TARGET) GOARCH=$(ARCH) CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/out cmd/out/main.go

test:
@echo "== Test =="
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[![Build Status](https://travis-ci.org/telia-oss/appsync-resource.svg?branch=master)](https://travis-ci.org/telia-oss/appsync-resource)
[![Go Report Card](https://goreportcard.com/badge/github.com/telia-oss/appsync-resource)](https://goreportcard.com/report/github.com/telia-oss/appsync-resource)


# AWS AppSync resource

A Concourse resource to update AppSync schema. Written in Go.
Expand Down
Loading

0 comments on commit 7c2da00

Please sign in to comment.