|
10 | 10 | include: |
11 | 11 | - stage: Tests |
12 | 12 | 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 |
14 | 14 | language: node_js |
15 | 15 | node_js: 10 |
16 | 16 |
|
|
41 | 41 |
|
42 | 42 | - stage: Tests |
43 | 43 | 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 |
45 | 45 | language: node_js |
46 | 46 | node_js: 10 |
47 | 47 |
|
|
67 | 67 |
|
68 | 68 | - stage: Tests |
69 | 69 | 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 |
71 | 71 | language: node_js |
72 | 72 | node_js: 10 |
73 | 73 |
|
|
78 | 78 |
|
79 | 79 | - stage: Tests |
80 | 80 | 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 |
82 | 82 |
|
83 | 83 | before_script: |
84 | 84 | - npm run doc-prepare |
|
90 | 90 |
|
91 | 91 | - stage: Deployment Doc Dev |
92 | 92 | name: Deploy next-docs.kuzzle.io |
93 | | - if: type = push AND branch =~ .*-dev |
| 93 | + if: type = push AND branch =~ /^[0-9]+-dev$/ |
94 | 94 | language: node_js |
95 | 95 | node_js: 10 |
96 | 96 | env: |
@@ -155,7 +155,7 @@ jobs: |
155 | 155 | - npm run doc-cloudfront |
156 | 156 |
|
157 | 157 | - 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$/ |
159 | 159 | sudo: false |
160 | 160 | language: node_js |
161 | 161 | node_js: 10 |
@@ -184,11 +184,12 @@ jobs: |
184 | 184 | api_key: |
185 | 185 | secure: ktfR6QVV59uCVLTfb60JSjPxzxg+UYe63pIGxU9awh1wJW89SQqQdeshHas3ojwrNoMOVybx/L6owtD8uIB4Xlau6pd7StBAA1VQ3vLa6RxU5SUr9VOz3RhZutRnYXH28Ziz/ynr6zVnwGxTzFsxBAdQ9CVS3ErBzliTgMVI+52YRNB3mBDiccSKVNGmp2APiWiaEidrmaOFkCwWQKsAxFTbBoCsDYGGAq8a8b1i2nE+BL4JWB1D2x55xzFaciDIQONXnY9YPAAbzCHBTKAne5iD6XwFj7Zg/42fHTn16LBSG+Sw+7aWyV11U6SJYKAjm/5GZEUrbvX/mwNQ7VYcvMStiP1nnt/L/s/Y7d0K3mwdsV8U8RCctElOeqLsDqoBzQYAxHTqRqJzyFNMcbcMhZgsHH5LgQDoJdKFwzP2ysYoazgm/jnr9atvlqucjWU8madRS34S8wD0zGjYf8VXH3WMUvL5mFwtb58FRCZKO3G7QJlGE8bdZ8CfJa/1tFnYY9SA0018GaXbh0RqQw0RskbmXEKTlnDBxaRd/ZjfaOjF4JcMGGZ8hsCRjxuDFY5Ki0kKDAlDV1W40fkkqPVm8k9H8Elwt0UFZvvAdjG4c+gV0zdAKHQ7P6uKvXiDlsKRHulE3Ztpo6jqGN69s7aLm6DKNVsaE4cNmmUOv3ODrM4= |
186 | 186 | on: |
187 | | - branch: master |
188 | | - tags: true |
| 187 | + repo: kuzzleio/sdk-javascript |
| 188 | + all_branches: true |
| 189 | + condition: $TRAVIS_BRANCH =~ /^master|[0-9]+-stable$/ |
189 | 190 |
|
190 | 191 | - 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$/ |
192 | 193 | sudo: false |
193 | 194 | language: node_js |
194 | 195 | node_js: 10 |
@@ -220,4 +221,4 @@ jobs: |
220 | 221 | on: |
221 | 222 | repo: kuzzleio/sdk-javascript |
222 | 223 | all_branches: true |
223 | | - condition: $TRAVIS_BRANCH =~ ^[0-9]+-beta$ |
| 224 | + condition: $TRAVIS_BRANCH =~ /^[0-9]+-beta$/ |
0 commit comments