Skip to content

Commit

Permalink
chore: cleanup repo (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored Oct 12, 2020
1 parent 15a95b2 commit b336d6b
Show file tree
Hide file tree
Showing 75 changed files with 27 additions and 4,556 deletions.
30 changes: 19 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ orbs:
changelog: ory/[email protected]
goreleaser: ory/[email protected]
slack: circleci/[email protected]
nancy: ory/[email protected].10
docs: ory/[email protected].4
golangci: ory/[email protected].4
nancy: ory/[email protected].12
docs: ory/[email protected].8
golangci: ory/[email protected].9

jobs:
test:
Expand Down Expand Up @@ -44,12 +44,20 @@ jobs:
run: go test -race -short -v $(go list ./... | grep -v cmd)
-
run: go-acc -v -o coverage.txt ./...
-
run: ./scripts/test-e2e.sh

# Submit coverage details
-
run: test -z "$CIRCLE_PR_NUMBER" && goveralls -service=circle-ci -coverprofile=coverage.txt -repotoken=$COVERALLS_REPO_TOKEN || echo "forks are not allowed to push to coveralls"
validate:
docker:
- image: circleci/golang:1.15-node
environment:
GO111MODULE: 'on'
working_directory: /go/src/github.com/ory/keto
steps:
- checkout
- golangci/lint
- docs/check-format

workflows:
version: 2
Expand All @@ -61,7 +69,7 @@ workflows:
tags:
only: /.*/
-
golangci/lint:
validate:
filters:
tags:
only: /.*/
Expand All @@ -74,7 +82,7 @@ workflows:
changelog/generate:
requires:
- test
- golangci/lint
- validate
filters:
tags:
only: /.*/
Expand All @@ -84,7 +92,7 @@ workflows:
docs/build:
requires:
- test
- golangci/lint
- validate
filters:
tags:
only: /.*/
Expand All @@ -95,12 +103,12 @@ workflows:
appname: Ory_Keto
requires:
- test
- golangci/lint
- validate
-
sdk/release:
requires:
- test
- golangci/lint
- validate
- goreleaser/release
filters:
tags:
Expand All @@ -117,7 +125,7 @@ workflows:
requires:
- goreleaser/test
- test
- golangci/lint
- validate
filters:
branches:
ignore: /.*/
Expand Down
19 changes: 0 additions & 19 deletions cmd/0_init_test.go

This file was deleted.

9 changes: 0 additions & 9 deletions cmd/client/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ import (

"github.com/ory/x/cmdx"
"github.com/ory/x/flagx"
"github.com/ory/x/stringslice"

"github.com/ory/keto/engine/ladon"
)

var hc = http.DefaultClient
Expand Down Expand Up @@ -82,12 +79,6 @@ func Delete(location string) {
fmt.Printf("Resource at location %s was deleted successfully!", location)
}

func CheckLadonFlavor(flavor string) {
if !stringslice.Has(ladon.EnabledFlavors, flavor) {
cmdx.Fatalf("ORY Access Control Policy flavor %s is currently not supported, please choose one of: %v", flavor, ladon.EnabledFlavors)
}
}

func EndpointURL(cmd *cobra.Command) string {
e := flagx.MustGetString(cmd, "endpoint")
if e == "" {
Expand Down
30 changes: 0 additions & 30 deletions cmd/engines.go

This file was deleted.

29 changes: 0 additions & 29 deletions cmd/engines_acp.go

This file was deleted.

39 changes: 0 additions & 39 deletions cmd/engines_acp_ory.go

This file was deleted.

63 changes: 0 additions & 63 deletions cmd/engines_acp_ory_allowed.go

This file was deleted.

29 changes: 0 additions & 29 deletions cmd/engines_acp_ory_policies.go

This file was deleted.

45 changes: 0 additions & 45 deletions cmd/engines_acp_ory_policies_delete.go

This file was deleted.

Loading

0 comments on commit b336d6b

Please sign in to comment.