Skip to content

Commit 928353c

Browse files
committed
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2 parents cd49f2d + 238139f commit 928353c

File tree

461 files changed

+36554
-18638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

461 files changed

+36554
-18638
lines changed

.circleci/config.yml

Lines changed: 53 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
aliases:
2+
# Workflow filters
3+
- &filter-only-release
4+
branches:
5+
ignore: /.*/
6+
tags:
7+
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
8+
- &filter-not-release
9+
tags:
10+
ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
11+
112
version: 2
213

314
jobs:
@@ -46,7 +57,6 @@ jobs:
4657
command: 'sudo npm install -g yarn --quiet'
4758
- restore_cache:
4859
key: dependency-cache-{{ checksum "yarn.lock" }}
49-
# Could we skip this step if the cache has been restored? `[ -d node_modules ] || yarn install ...` should be able to apply to build step as well
5060
- run:
5161
name: yarn install
5262
command: 'yarn install --pure-lockfile --no-progress'
@@ -68,15 +78,27 @@ jobs:
6878
name: build backend and run go tests
6979
command: './scripts/circle-test-backend.sh'
7080

71-
build:
81+
build-all:
7282
docker:
73-
- image: grafana/build-container:v0.1
83+
- image: grafana/build-container:1.0.0
7484
working_directory: /go/src/github.com/grafana/grafana
7585
steps:
7686
- checkout
87+
- run:
88+
name: prepare build tools
89+
command: '/tmp/bootstrap.sh'
90+
- restore_cache:
91+
key: phantomjs-binaries-{{ checksum "scripts/build/download-phantomjs.sh" }}
92+
- run:
93+
name: download phantomjs binaries
94+
command: './scripts/build/download-phantomjs.sh'
95+
- save_cache:
96+
key: phantomjs-binaries-{{ checksum "scripts/build/download-phantomjs.sh" }}
97+
paths:
98+
- /tmp/phantomjs
7799
- run:
78100
name: build and package grafana
79-
command: './scripts/build/build.sh'
101+
command: './scripts/build/build-all.sh'
80102
- run:
81103
name: sign packages
82104
command: './scripts/build/sign_packages.sh'
@@ -92,6 +114,8 @@ jobs:
92114
- dist/grafana*
93115
- scripts/*.sh
94116
- scripts/publish
117+
- store_artifacts:
118+
path: dist
95119

96120
build-enterprise:
97121
docker:
@@ -154,45 +178,43 @@ workflows:
154178
version: 2
155179
test-and-build:
156180
jobs:
181+
- build-all:
182+
filters: *filter-not-release
157183
- codespell:
158-
filters:
159-
tags:
160-
only: /.*/
184+
filters: *filter-not-release
161185
- gometalinter:
162-
filters:
163-
tags:
164-
only: /.*/
165-
- build:
166-
filters:
167-
tags:
168-
only: /.*/
186+
filters: *filter-not-release
169187
- test-frontend:
170-
filters:
171-
tags:
172-
only: /.*/
188+
filters: *filter-not-release
173189
- test-backend:
174-
filters:
175-
tags:
176-
only: /.*/
190+
filters: *filter-not-release
177191
- deploy-master:
178192
requires:
193+
- build-all
179194
- test-backend
180195
- test-frontend
181-
- build
196+
- codespell
197+
- gometalinter
182198
filters:
183199
branches:
184200
only: master
201+
release:
202+
jobs:
203+
- build-all:
204+
filters: *filter-only-release
205+
- codespell:
206+
filters: *filter-only-release
207+
- gometalinter:
208+
filters: *filter-only-release
209+
- test-frontend:
210+
filters: *filter-only-release
211+
- test-backend:
212+
filters: *filter-only-release
185213
- deploy-release:
186214
requires:
215+
- build-all
187216
- test-backend
188217
- test-frontend
189-
- build
190-
filters:
191-
branches:
192-
ignore: /.*/
193-
tags:
194-
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
195-
# - build-enterprise:
196-
# filters:
197-
# tags:
198-
# only: /.*/
218+
- codespell
219+
- gometalinter
220+
filters: *filter-only-release

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ debug.test
6565
/vendor/**/*_test.go
6666
/vendor/**/.editorconfig
6767
/vendor/**/appengine*
68-
*.orig
68+
*.orig

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* **Dashboard**: JSON Model under dashboard settings can now be updated & changes saved, [#1429](https://github.com/grafana/grafana/issues/1429), thx [@jereksel](https://github.com/jereksel)
1313
* **Security**: Fix XSS vulnerabilities in dashboard links [#11813](https://github.com/grafana/grafana/pull/11813)
1414
* **Singlestat**: Fix "time of last point" shows local time when dashboard timezone set to UTC [#10338](https://github.com/grafana/grafana/issues/10338)
15+
* **Prometheus**: Add support for passing timeout parameter to Prometheus [#11788](https://github.com/grafana/grafana/pull/11788), thx [@mtanda](https://github.com/mtanda)
1516

1617
# 5.1.3 (2018-05-16)
1718

0 commit comments

Comments
 (0)