mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 00:12:18 +08:00 
			
		
		
		
	feat: add scripts cross ower
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
		
							parent
							
								
									bc8702749f
								
							
						
					
					
						commit
						ca4bfde2aa
					
				
							
								
								
									
										14
									
								
								scripts/gen-swagger-docs.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										14
									
								
								scripts/gen-swagger-docs.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -20,13 +20,15 @@ set -o nounset | ||||
| set -o pipefail | ||||
| 
 | ||||
| # The root of the build/dist directory | ||||
| OPENIM_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)" | ||||
| OPENIM_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" | ||||
| source ${OPENIM_ROOT}/scripts/lib/util.sh | ||||
| 
 | ||||
| cd /build | ||||
| mkdir -p ${OPENIM_OUTPUT_TMP} | ||||
| cd ${OPENIM_OUTPUT_TMP} | ||||
| 
 | ||||
| # gendocs takes "input.json" as the input swagger spec. | ||||
| # $1 is expected to be <group>_<version> | ||||
| cp /swagger-source/"$1".json input.json | ||||
| cp ${OPENIM_OUTPUT_TMP}/swagger-source/"$1".json ${OPENIM_OUTPUT_TMP}/input.json | ||||
| 
 | ||||
| ./gradle-2.5/bin/gradle gendocs --info | ||||
| 
 | ||||
| @ -65,7 +67,7 @@ echo -e "=== any\nRepresents an untyped JSON map - see the description of the fi | ||||
| asciidoctor definitions.adoc | ||||
| asciidoctor paths.adoc | ||||
| 
 | ||||
| cp definitions.html /output/ | ||||
| cp paths.html /output/operations.html | ||||
| cp ${OPENIM_OUTPUT_TMP}/definitions.html ${OPENIM_OUTPUT_TMP}/_output/ | ||||
| cp ${OPENIM_OUTPUT_TMP}/paths.html ${OPENIM_OUTPUT_TMP}/_output/operations.html | ||||
| 
 | ||||
| echo "SUCCESS" | ||||
| success "SUCCESS" | ||||
							
								
								
									
										0
									
								
								scripts/lib/chat.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								scripts/lib/chat.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -37,6 +37,7 @@ OPENIM_OUTPUT="${OPENIM_ROOT}/${OPENIM_OUTPUT_SUBPATH}" | ||||
| OPENIM_OUTPUT_BINPATH="${OPENIM_OUTPUT}/bin/platforms" | ||||
| OPENIM_OUTPUT_BINTOOLPATH="${OPENIM_OUTPUT}/bin-tools" | ||||
| OPENIM_OUTPUT_TOOLS="${OPENIM_OUTPUT}/tools" | ||||
| OPENIM_OUTPUT_TMP="${OPENIM_OUTPUT}/tmp" | ||||
| 
 | ||||
| # This controls rsync compression. Set to a value > 0 to enable rsync | ||||
| # compression for build container | ||||
|  | ||||
							
								
								
									
										0
									
								
								scripts/lib/test.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								scripts/lib/test.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -130,9 +130,10 @@ go.build.%: | ||||
| 		if [ -f $(ROOT_DIR)/cmd/$(COMMAND)/main.go ]; then \
 | ||||
| 			CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o \
 | ||||
| 			$(BIN_DIR)/platforms/$(OS)/$(ARCH)/$(COMMAND)$(GO_OUT_EXT) $(ROOT_DIR)/cmd/$(COMMAND)/main.go; \
 | ||||
| 		elif [ -f $(ROOT_DIR)/tools/$(COMMAND)/main.go ]; then \
 | ||||
| 		elif [ -f $(ROOT_DIR)/tools/$(COMMAND)/$(COMMAND).go ]; then \
 | ||||
| 			CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o \
 | ||||
| 			$(BIN_TOOLS_DIR)/platforms/$(OS)/$(ARCH)/$(COMMAND)$(GO_OUT_EXT) $(ROOT_DIR)/tools/$(COMMAND)/main.go; \
 | ||||
| 			$(BIN_TOOLS_DIR)/platforms/$(OS)/$(ARCH)/$(COMMAND)$(GO_OUT_EXT) $(ROOT_DIR)/tools/$(COMMAND)/$(COMMAND).go; \
 | ||||
| 			chmod +x $(BIN_TOOLS_DIR)/platforms/$(OS)/$(ARCH)/$(COMMAND)$(GO_OUT_EXT); \
 | ||||
| 		fi \
 | ||||
| 	fi | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										0
									
								
								scripts/update-yamlfmt.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								scripts/update-yamlfmt.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
								
								
									
										0
									
								
								scripts/verify-yamlfmt.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								scripts/verify-yamlfmt.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -12,7 +12,7 @@ | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| 
 | ||||
| package main | ||||
| package changelog | ||||
| 
 | ||||
| import ( | ||||
| 	"fmt" | ||||
|  | ||||
| @ -12,7 +12,7 @@ | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| 
 | ||||
| package main | ||||
| package infra | ||||
| 
 | ||||
| import ( | ||||
| 	"fmt" | ||||
| @ -12,7 +12,7 @@ | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| 
 | ||||
| package main | ||||
| package ncpu | ||||
| 
 | ||||
| import ( | ||||
| 	"fmt" | ||||
| @ -12,7 +12,7 @@ | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| 
 | ||||
| package main | ||||
| package ncpu | ||||
| 
 | ||||
| import "testing" | ||||
| 
 | ||||
| @ -13,7 +13,7 @@ | ||||
| // limitations under the License. | ||||
| 
 | ||||
| // OPENIM plan on prow tools | ||||
| package main | ||||
| package yamlfmt | ||||
| 
 | ||||
| import ( | ||||
| 	"flag" | ||||
| @ -12,7 +12,7 @@ | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| 
 | ||||
| package main | ||||
| package yamlfmt | ||||
| 
 | ||||
| import ( | ||||
| 	"bufio" | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user