Skip to content

Commit f30795d

Browse files
authored
Merge pull request #470 from kuzzleio/handle-mutli-stable-branch-deploy-7
Handle multi stable branches NPM.js deployments
2 parents 8473d45 + 530602d commit f30795d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.travis.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
include:
1111
- stage: Tests
1212
name: Unit Tests
13-
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
13+
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable|beta)$/ OR type = cron
1414
language: node_js
1515
node_js: 10
1616

@@ -41,7 +41,7 @@ jobs:
4141

4242
- stage: Tests
4343
name: Integration Tests
44-
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
44+
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable|beta)$/ OR type = cron
4545
language: node_js
4646
node_js: 10
4747

@@ -67,7 +67,7 @@ jobs:
6767

6868
- stage: Tests
6969
name: Documentation Tests
70-
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
70+
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable|beta)$/ OR type = cron
7171
language: node_js
7272
node_js: 10
7373

@@ -78,7 +78,7 @@ jobs:
7878

7979
- stage: Tests
8080
name: Dead link check
81-
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
81+
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable|beta)$/ OR type = cron
8282

8383
before_script:
8484
- npm run doc-prepare
@@ -90,7 +90,7 @@ jobs:
9090

9191
- stage: Deployment Doc Dev
9292
name: Deploy next-docs.kuzzle.io
93-
if: type = push AND branch =~ .*-dev
93+
if: type = push AND branch =~ /^[0-9]+-dev$/
9494
language: node_js
9595
node_js: 10
9696
env:
@@ -155,7 +155,7 @@ jobs:
155155
- npm run doc-cloudfront
156156

157157
- stage: Deploy Stable release on NPM
158-
if: tag IS present AND type != cron
158+
if: tag IS present AND type != cron AND branch =~ /^master|[0-9]+-stable$/
159159
sudo: false
160160
language: node_js
161161
node_js: 10
@@ -184,11 +184,12 @@ jobs:
184184
api_key:
185185
secure: ktfR6QVV59uCVLTfb60JSjPxzxg+UYe63pIGxU9awh1wJW89SQqQdeshHas3ojwrNoMOVybx/L6owtD8uIB4Xlau6pd7StBAA1VQ3vLa6RxU5SUr9VOz3RhZutRnYXH28Ziz/ynr6zVnwGxTzFsxBAdQ9CVS3ErBzliTgMVI+52YRNB3mBDiccSKVNGmp2APiWiaEidrmaOFkCwWQKsAxFTbBoCsDYGGAq8a8b1i2nE+BL4JWB1D2x55xzFaciDIQONXnY9YPAAbzCHBTKAne5iD6XwFj7Zg/42fHTn16LBSG+Sw+7aWyV11U6SJYKAjm/5GZEUrbvX/mwNQ7VYcvMStiP1nnt/L/s/Y7d0K3mwdsV8U8RCctElOeqLsDqoBzQYAxHTqRqJzyFNMcbcMhZgsHH5LgQDoJdKFwzP2ysYoazgm/jnr9atvlqucjWU8madRS34S8wD0zGjYf8VXH3WMUvL5mFwtb58FRCZKO3G7QJlGE8bdZ8CfJa/1tFnYY9SA0018GaXbh0RqQw0RskbmXEKTlnDBxaRd/ZjfaOjF4JcMGGZ8hsCRjxuDFY5Ki0kKDAlDV1W40fkkqPVm8k9H8Elwt0UFZvvAdjG4c+gV0zdAKHQ7P6uKvXiDlsKRHulE3Ztpo6jqGN69s7aLm6DKNVsaE4cNmmUOv3ODrM4=
186186
on:
187-
branch: master
188-
tags: true
187+
repo: kuzzleio/sdk-javascript
188+
all_branches: true
189+
condition: $TRAVIS_BRANCH =~ /^master|[0-9]+-stable$/
189190

190191
- stage: Deploy Beta release on NPM
191-
if: type = push && branch =~ /^[0-9]+-dev$/
192+
if: tag IS present AND type != cron AND branch =~ /^[0-9]+-beta$/
192193
sudo: false
193194
language: node_js
194195
node_js: 10
@@ -220,4 +221,4 @@ jobs:
220221
on:
221222
repo: kuzzleio/sdk-javascript
222223
all_branches: true
223-
condition: $TRAVIS_BRANCH =~ ^[0-9]+-beta$
224+
condition: $TRAVIS_BRANCH =~ /^[0-9]+-beta$/

0 commit comments

Comments
 (0)