-
-
Notifications
You must be signed in to change notification settings - Fork 347
/
config.yml
117 lines (112 loc) · 3.35 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: 2.1
orbs:
sdk: ory/sdk@0.1.23
changelog: ory/changelog@0.0.6
goreleaser: ory/goreleaser@0.0.27
nancy: ory/nancy@0.0.8
jobs:
format:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/ory/oathkeeper
steps:
# This is disabled for now because goimports is really slow when go modules are used, see
# https://github.com/golang/go/issues/27287
#
# - run:
# name: Enable go1.12 modules
# command: |
# echo 'export GO111MODULE=on' >> $BASH_ENV
# source $BASH_ENV
- checkout
- run:
name: Enable go1.13 modules
command: |
echo 'export GO111MODULE=on' >> $BASH_ENV
source $BASH_ENV
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
- run: go mod download
- run: golangci-lint run ./...
test:
docker:
- image: circleci/golang:1.13
environment:
- GO111MODULE=on
working_directory: /go/src/github.com/ory/oathkeeper
steps:
- checkout
- setup_remote_docker
- run: go mod download
- run: go install github.com/ory/go-acc github.com/mattn/goveralls
- run: go-acc -o coverage.txt ./... -- -failfast -timeout=20m
- 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"
- run: ./test/e2e/run.sh
- run: ./test/reload/run.sh
docs:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/ory/oathkeeper
steps:
- checkout
- run: git config --global user.email "hi@ory.am"
- run: git config --global user.name "ORY Continuous Integration"
- run: "git clone https://arekkas:$DOCS_TOKEN_PUSH@github.com/ory/docs.git ../docs"
- run: "cp ./.schemas/config.schema.json ../docs/schemas/oathkeeper.config.schema.json"
- run: "(cd ../docs && git add -A && git commit -a -m \"Update ORY Oathkeeper Swagger and JSON Schemas\" && git push origin) || exit 0"
workflows:
"test, build, and relase":
jobs:
- nancy/test:
filters:
tags:
only: /.*/
- format:
filters:
tags:
only: /.*/
- test:
filters:
tags:
only: /.*/
- docs:
filters:
branches:
only: master
- changelog/generate:
requires:
- test
- format
filters:
tags:
only: /.*/
branches:
only: master
- sdk/generate:
appname: Ory_Oathkeeper
requires:
- test
- format
- sdk/release:
requires:
- test
- format
- goreleaser/release
filters:
tags:
only: /.*/
branches:
ignore: /.*/
- goreleaser/test:
filters:
tags:
only: /.*/
- goreleaser/release:
requires:
- goreleaser/test
- test
- format
filters:
tags:
only: /.*/
branches:
ignore: /.*/