Skip to content
Snippets Groups Projects
Commit 4076d6fa authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: matomo csp

chore: travis check on version adv
parent 9749c8ee
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,29 @@ jobs:
- NODE_ENV=test
- PORT=12234
- name: Check version number advanced (package.json)
if: |
(type = pull_request AND head_branch = staging) OR \
(type = pull_request AND head_branch = master AND NOT branch = staging)
script:
- PACKAGE_JSON_DIFF=$(git diff --name-only $TRAVIS_COMMIT_RANGE package.json)
- test -z "$PACKAGE_JSON_DIFF" && exit 1
- name: Check release notes authored (docs/releases/v?.?.?.md)
if: |
type = pull_request AND \
head_branch = staging
script:
- VERSION_NUM=$(jq '.version' < package.json)
- test -f docs/releases/v$VERSION_NUM.md || exit 1
- name: Release notes linked in mkdocs.yml
if: |
type = pull_request AND \
head_branch = staging
script:
- VERSION_NUM=$(jq '.version' < package.json)
- test -z $(grep $VERSION_NUM < mkdocs.yml) && exit 1
# Temporarily disabling browserstack e2e tests. They seem to fail without any reason
......
......@@ -87,12 +87,10 @@ module.exports = (app) => {
'unpkg.com',
'*.unpkg.com',
'*.jsdelivr.net',
// Catching Safari 10 bug unsafe-eval
"'sha256-yEVCaeeaeg6koloXfx+6DuFnP7SnjOwYZiWBTRFurJw='",
(req, res) => res.locals.nonce ? `'nonce-${res.locals.nonce}'` : null,
...SCRIPT_SRC,
...WHITE_LIST_SRC
...WHITE_LIST_SRC,
...defaultAllowedSites
],
reportUri: CSP_REPORT_URI || '/report-violation'
},
......
......@@ -40,6 +40,8 @@ pages:
- Fetching datasets: 'advanced/datasets.md'
- Display non-atlas volumes: 'advanced/otherVolumes.md'
- Release notes:
- v2.2.5: 'releases/v2.2.5.md'
- v2.2.4: 'releases/v2.2.4.md'
- v2.2.3: 'releases/v2.2.3.md'
- v2.2.2: 'releases/v2.2.2.md'
- v2.2.1: 'releases/v2.2.1.md'
......
{
"name": "interactive-viewer",
"version": "2.2.2",
"version": "2.2.6",
"description": "HBP interactive atlas viewer. Integrating KG query, dataset previews & more. Based on humanbrainproject/nehuba & google/neuroglancer. Built with angular.io",
"scripts": {
"dev-server-export": "webpack-dev-server --config webpack.export.js",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment