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

fix travis

parent 8d7b653d
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ jobs:
script:
- |
PACKAGE_JSON_DIFF=$(git diff --name-only $TRAVIS_COMMIT_RANGE package.json) && \
test -z "$PACKAGE_JSON_DIFF" && exit 1
test -z "$PACKAGE_JSON_DIFF" && exit 1 || exit 0
- name: Check release notes authored (docs/releases/v?.?.?.md)
if: |
......@@ -61,14 +61,13 @@ jobs:
VERSION_NUM=$(jq '.version' < package.json) && \
VERSION_NUM=${VERSION_NUM#\"} && \
VERSION_NUM=${VERSION_NUM%\"} && \
test -f docs/releases/v$VERSION_NUM.md || exit 1
test -f docs/releases/v$VERSION_NUM.md && exit 0 || exit 1
- name: Release notes linked in mkdocs.yml
if: |
(type = pull_request AND branch = staging) OR \
(type = pull_request AND branch = master AND NOT head_branch = staging)
script:
- which test
- VERSION_NUM=$(jq '.version' < package.json)
- VERSION_NUM=${VERSION_NUM#\"}
- VERSION_NUM=${VERSION_NUM%\"}
......@@ -76,7 +75,7 @@ jobs:
- cat mkdocs.yml
- GREP_VERSION_NUM=$(cat mkdocs.yml | grep $VERSION_NUM)
- 'echo GREP_VERSION_NUM: $GREP_VERSION_NUM'
- test -z "$GREP_VERSION_NUM" && echo "EMPTY" || echo "NON EMPTY"
- test -z "$GREP_VERSION_NUM" && exit 1 || exit 0
# Temporarily disabling browserstack e2e tests. They seem to fail without any reason
......
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