From a526eda454bb138a214a8e3a4fcd721ded6af19b Mon Sep 17 00:00:00 2001 From: Dimitri Alexander Kopriwa Date: Tue, 26 Jun 2018 20:25:30 +0700 Subject: [PATCH] fix(sonarcloud): reduce command sonar-scanner --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6b04e5f..2e1aaa8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,10 +68,11 @@ jobs: # Job: Page - stage: deploy - if: tag is present + if: ((tag =~ ^v) AND (branch = master)) node_js: - 'lts/*' script: + - echo "preparing doc for tags ${TRAVIS_TAG}" - git checkout refs/tags/${TRAVIS_TAG} - npm install # Replace variables @@ -92,5 +93,3 @@ jobs: github_token: $GH_TOKEN # Set in the settings page of your repository, as a secure variable keep_history: true local_dir: public/ - on: - tags: true