Skip to content

Commit

Permalink
fix(travis): fix Tarvis on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Domainv committed Mar 25, 2019
1 parent 242cb99 commit 01ded92
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ testPostDeploy: &testPostDeploy

stages:
- name: "Publish to ngx-bootstrap-ci"
if: ( branch = development AND type = push ) OR type = pull_request
if: ( branch = development AND type = push ) OR type = pull_request OR tag =~ ^v\d+
- name: Testing
if: ( branch = development AND type = push ) OR type = pull_request OR tag =~ ^v\d+
- name: deploy
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
- npm run build
- npm run ci:update-pkg
- if [[ "$TRAVIS_PULL_REQUEST" != false ]]; then export NPM_AUTH_TOKEN_CI=$NPM_AUTH_TOKEN_CI_PR; fi
- npm config set '//registry.npmjs.org/:_authToken' $NPM_AUTH_TOKEN_CI
- npm config set '//registry.npmjs.org/:_authToken' 810c9089-b5e8-4348-8c89-61a1c2461d68
- cd dist
- npm publish --tag $TRAVIS_COMMIT
skip_cleanup: true
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
after_script:
- cd node_modules/ngx-bootstrap
- npm config set '//registry.npmjs.org/:_authToken' $NPM_AUTH_TOKEN_CI
- npm unpublish --tag $TRAVIS_COMMIT --force
- if: branch = development; then npm unpublish --tag $TRAVIS_COMMIT --force; fi
<<: *testPostDeploy
- script:
name: "Cypress on gh-pages after deploy 1thread"
Expand All @@ -259,6 +259,10 @@ jobs:
- script: APPLITOOLS_API_KEY=Nls100t102uNgLhLpblVUdA3tP104MQQS9VUYgHQ5tYOUuIxU110 CYPRESS_baseUrl=https://valor-software.com/ngx-bootstrap/#/ npm run cy:run:snapshot
name: "Cypress Applitools Snapshot tests"
if: tag =~ ^v\d+
after_script:
- cd node_modules/ngx-bootstrap
- npm config set '//registry.npmjs.org/:_authToken' $NPM_AUTH_TOKEN_CI
- npm unpublish --tag $TRAVIS_COMMIT --force

cache:
apt: true
Expand Down

0 comments on commit 01ded92

Please sign in to comment.