mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:42:24 -05:00 
			
		
		
		
	- update gruf/go-stroage v0.2.0 -> v0.2.1 - update KimMachineGun/automemlimit v0.7.1 -> v0.7.2 - update miekg/dns v1.1.65 -> v1.1.66 - update ncruces/go-sqlite3 v0.25.1 -> v0.25.2 - update spf13/cast v1.7.1 -> v1.8.0 - update tdewolff/minify/v2 v2.23.1 -> v2.23.5 - update x/crypto v0.37.0 -> v0.38.0 - update x/image v0.26.0 -> v0.27.0 - update x/net v0.39.0 -> v0.40.0 - update x/oauth2 v0.29.0 -> v0.30.0 - update x/sys v0.32.0 -> v0.33.0 - update x/text v0.24.0 -> v0.25.0 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4162 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			No EOL
		
	
	
		
			638 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			No EOL
		
	
	
		
			638 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| export \
 | |
|     MINIO_ADDR='127.0.0.1:8080' \
 | |
|     MINIO_BUCKET='test' \
 | |
|     MINIO_ROOT_USER='root' \
 | |
|     MINIO_ROOT_PASSWORD='password' \
 | |
|     MINIO_PID=0 \
 | |
|     S3_DIR=$(mktemp -d)
 | |
| 
 | |
| # Drop the test S3 bucket and kill minio on exit
 | |
| trap 'rm -rf "$S3_DIR"; [ $MINIO_PID -ne 0 ] && kill -9 $MINIO_PID' EXIT
 | |
| 
 | |
| # Create required S3 bucket dir
 | |
| mkdir -p "${S3_DIR}/${MINIO_BUCKET}"
 | |
| 
 | |
| # Start the minio test S3 server instance
 | |
| minio server --address "$MINIO_ADDR" "$S3_DIR" & > /dev/null 2>&1
 | |
| MINIO_PID=$!; [ $? -ne 0 ] && {
 | |
|     echo 'failed to start minio'
 | |
|     exit 1
 | |
| }
 | |
| 
 | |
| # Let server startup
 | |
| sleep 1
 | |
| 
 | |
| # Run go-store tests
 | |
| go test ./... -v |