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

chore: fix travis

parent 8e4cde07
No related branches found
No related tags found
No related merge requests found
......@@ -42,26 +42,27 @@ jobs:
- NODE_ENV=test
- PORT=12234
- name: Check version number advanced (package.json)
- stage: Check version numbers and release notes
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)
(type = pull_request AND branch = staging) OR \
(type = pull_request AND branch = master AND NOT head_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
(type = pull_request AND branch = staging) OR \
(type = pull_request AND branch = master AND NOT 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
(type = pull_request AND branch = staging) OR \
(type = pull_request AND branch = master AND NOT head_branch = staging)
script:
- VERSION_NUM=$(jq '.version' < package.json)
- test -z $(grep $VERSION_NUM < mkdocs.yml) && exit 1
......
......@@ -40,6 +40,7 @@ pages:
- Fetching datasets: 'advanced/datasets.md'
- Display non-atlas volumes: 'advanced/otherVolumes.md'
- Release notes:
- v2.2.6: 'releases/v2.2.6.md'
- v2.2.5: 'releases/v2.2.5.md'
- v2.2.4: 'releases/v2.2.4.md'
- v2.2.3: 'releases/v2.2.3.md'
......
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