mirror of https://github.com/vector-im/riot-web
				
				
				
			Tweak branch matching to allow not applying outside of PRs for matrix-analytics-events (#11186)
							parent
							
								
									cf11b5f400
								
							
						
					
					
						commit
						1a2d201863
					
				|  | @ -9,20 +9,24 @@ | |||
| 
 | ||||
| set -ex | ||||
| 
 | ||||
| scripts/fetchdep.sh matrix-org matrix-js-sdk | ||||
| scripts/fetchdep.sh matrix-org matrix-js-sdk develop | ||||
| pushd matrix-js-sdk | ||||
| [ -n "$JS_SDK_GITHUB_BASE_REF" ] && git fetch --depth 1 origin $JS_SDK_GITHUB_BASE_REF && git checkout $JS_SDK_GITHUB_BASE_REF | ||||
| yarn link | ||||
| yarn install --frozen-lockfile $@ | ||||
| popd | ||||
| 
 | ||||
| scripts/fetchdep.sh matrix-org matrix-analytics-events main | ||||
| pushd matrix-analytics-events | ||||
| yarn link | ||||
| yarn install --frozen-lockfile $@ | ||||
| yarn build:ts | ||||
| popd | ||||
| scripts/fetchdep.sh matrix-org matrix-analytics-events | ||||
| # We don't pass a default branch so cloning may fail when we are not in a PR | ||||
| # This is expected as this project does not share a release cycle but we still branch match it | ||||
| if [ -d matrix-analytics-events ]; then | ||||
|     pushd matrix-analytics-events | ||||
|     yarn link | ||||
|     yarn install --frozen-lockfile $@ | ||||
|     yarn build:ts | ||||
|     popd | ||||
| fi | ||||
| 
 | ||||
| yarn link matrix-js-sdk | ||||
| yarn link @matrix-org/analytics-events | ||||
| [ -d matrix-analytics-events ] && yarn link @matrix-org/analytics-events | ||||
| yarn install --frozen-lockfile $@ | ||||
|  |  | |||
|  | @ -14,30 +14,33 @@ set -ex | |||
| # for the primary repo (react-sdk in this case). | ||||
| 
 | ||||
| # Set up the js-sdk first | ||||
| scripts/fetchdep.sh matrix-org matrix-js-sdk | ||||
| scripts/fetchdep.sh matrix-org matrix-js-sdk develop | ||||
| pushd matrix-js-sdk | ||||
| [ -n "$JS_SDK_GITHUB_BASE_REF" ] && git fetch --depth 1 origin $JS_SDK_GITHUB_BASE_REF && git checkout $JS_SDK_GITHUB_BASE_REF | ||||
| yarn link | ||||
| yarn install --frozen-lockfile | ||||
| popd | ||||
| 
 | ||||
| # Also set up matrix-analytics-events so we get the latest from | ||||
| # the main branch or a branch with matching name | ||||
| scripts/fetchdep.sh matrix-org matrix-analytics-events main | ||||
| pushd matrix-analytics-events | ||||
| yarn link | ||||
| yarn install --frozen-lockfile | ||||
| yarn build:ts | ||||
| popd | ||||
| # Also set up matrix-analytics-events for branch with matching name | ||||
| scripts/fetchdep.sh matrix-org matrix-analytics-events | ||||
| # We don't pass a default branch so cloning may fail when we are not in a PR | ||||
| # This is expected as this project does not share a release cycle but we still branch match it | ||||
| if [ -d matrix-analytics-events ]; then | ||||
|     pushd matrix-analytics-events | ||||
|     yarn link | ||||
|     yarn install --frozen-lockfile | ||||
|     yarn build:ts | ||||
|     popd | ||||
| fi | ||||
| 
 | ||||
| # Now set up the react-sdk | ||||
| yarn link matrix-js-sdk | ||||
| yarn link @matrix-org/analytics-events | ||||
| [ -d matrix-analytics-events ] && yarn link @matrix-org/analytics-events | ||||
| yarn link | ||||
| yarn install --frozen-lockfile | ||||
| 
 | ||||
| # Finally, set up element-web | ||||
| scripts/fetchdep.sh vector-im element-web | ||||
| scripts/fetchdep.sh vector-im element-web develop | ||||
| pushd element-web | ||||
| yarn link matrix-js-sdk | ||||
| yarn link matrix-react-sdk | ||||
|  |  | |||
|  | @ -6,8 +6,6 @@ deforg="$1" | |||
| defrepo="$2" | ||||
| defbranch="$3" | ||||
| 
 | ||||
| [ -z "$defbranch" ] && defbranch="develop" | ||||
| 
 | ||||
| rm -r "$defrepo" || true | ||||
| 
 | ||||
| # figure out where to look for pull requests: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Michael Telatynski
						Michael Telatynski