mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Add Travis
This commit is contained in:
+1
-1
@@ -12,4 +12,4 @@ linters:
|
||||
- lll
|
||||
issues:
|
||||
exclude:
|
||||
- if block ends with a return statement, so drop this else and outdent its block
|
||||
- if block ends with a return statement, so drop this else and outdent its block
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
dist: bionic
|
||||
|
||||
language: go
|
||||
go:
|
||||
- 1.12.x
|
||||
|
||||
env:
|
||||
- GO111MODULE=on
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/gopath/pkg/mod
|
||||
- $HOME/.cache/go-build
|
||||
|
||||
install:
|
||||
- go mod download
|
||||
|
||||
script:
|
||||
- make lint
|
||||
- make test
|
||||
@@ -7,7 +7,7 @@ push:
|
||||
for d in $(SUBDIRS); do $(MAKE) -C $$d push; done
|
||||
|
||||
$(GOLANGCI):
|
||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(BINPATH) v1.16.0
|
||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(BINPATH) v1.17.1
|
||||
$(GOLANGCI) --version
|
||||
|
||||
.PHONY: lint
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
version: 0.2
|
||||
|
||||
env:
|
||||
variables:
|
||||
GO111MODULE: on
|
||||
parameter-store:
|
||||
YOUTUBE_TEST_API_KEY: "/CodeBuild/youtubeKey"
|
||||
VIMEO_TEST_API_KEY: "/CodeBuild/vimeoKey"
|
||||
|
||||
phases:
|
||||
build:
|
||||
commands:
|
||||
- make lint
|
||||
- make test
|
||||
@@ -15,7 +15,6 @@ require (
|
||||
github.com/gin-gonic/gin v1.3.0
|
||||
github.com/go-chi/chi v4.0.2+incompatible
|
||||
github.com/go-pg/pg v6.14.2+incompatible
|
||||
github.com/go-redis/redis v6.15.2+incompatible
|
||||
github.com/golang/mock v1.2.0
|
||||
github.com/gorilla/sessions v1.1.1 // indirect
|
||||
github.com/jessevdk/go-flags v1.4.0
|
||||
|
||||
@@ -34,8 +34,6 @@ github.com/go-chi/chi v4.0.2+incompatible h1:maB6vn6FqCxrpz4FqWdh4+lwpyZIQS7YEAU
|
||||
github.com/go-chi/chi v4.0.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ=
|
||||
github.com/go-pg/pg v6.14.2+incompatible h1:FrOgsHDUhC3V3wkBGAIN5LVj4nJczFPyy1YNFnetfIQ=
|
||||
github.com/go-pg/pg v6.14.2+incompatible/go.mod h1:a2oXow+aFOrvwcKs3eIA0lNFmMilrxK2sOkB5NWe0vA=
|
||||
github.com/go-redis/redis v6.15.2+incompatible h1:9SpNVG76gr6InJGxoZ6IuuxaCOQwDAhzyXg+Bs+0Sb4=
|
||||
github.com/go-redis/redis v6.15.2+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
|
||||
github.com/golang/mock v1.2.0 h1:28o5sBqPkBsMGnC6b4MvE2TzSr5/AT4c/1fLqVGIwlk=
|
||||
github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
|
||||
|
||||
Reference in New Issue
Block a user