Skip to content

Commit

Permalink
fix(tarvis): fix Travis on release (#5122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Domainv authored Mar 25, 2019
1 parent 242cb99 commit f9a1094
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 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 @@ -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 f9a1094

Please sign in to comment.