mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	[TravisCI] Add RUN_API_EXAMPLES option so that we can disable
				
					
				
			building/running examples in some configurations.
This commit is contained in:
		
							parent
							
								
									dbb7f616c1
								
							
						
					
					
						commit
						88fb31ac08
					
				
					 5 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -9,6 +9,7 @@ export DOTNET_BINDINGS="${DOTNET_BINDINGS:-1}"
 | 
			
		|||
export JAVA_BINDINGS="${JAVA_BINDINGS:-1}"
 | 
			
		||||
export NO_SUPPRESS_OUTPUT="${NO_SUPPRESS_OUTPUT:-0}"
 | 
			
		||||
export PYTHON_BINDINGS="${PYTHON_BINDINGS:-1}"
 | 
			
		||||
export RUN_API_EXAMPLES="${RUN_API_EXAMPLES:-1}"
 | 
			
		||||
export RUN_SYSTEM_TESTS="${RUN_SYSTEM_TESTS:-1}"
 | 
			
		||||
export RUN_UNIT_TESTS="${RUN_UNIT_TESTS:-BUILD_AND_RUN}"
 | 
			
		||||
# Don't print suppressions by default because that breaks the Z3
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,6 +15,12 @@ set -o pipefail
 | 
			
		|||
: ${DOTNET_BINDINGS?"DOTNET_BINDINGS must be specified"}
 | 
			
		||||
: ${JAVA_BINDINGS?"JAVA_BINDINGS must be specified"}
 | 
			
		||||
: ${UBSAN_BUILD?"UBSAN_BUILD must be specified"}
 | 
			
		||||
: ${RUN_API_EXAMPLES?"RUN_API_EXAMPLES must be specified"}
 | 
			
		||||
 | 
			
		||||
if [ "X${RUN_API_EXAMPLES}" = "X0" ]; then
 | 
			
		||||
  echo "Skipping run of API examples"
 | 
			
		||||
  exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Set compiler flags
 | 
			
		||||
source ${SCRIPT_DIR}/set_compiler_flags.sh
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -100,6 +100,10 @@ if [ -n "${TEST_INSTALL}" ]; then
 | 
			
		|||
  BUILD_OPTS+=("--build-arg" "TEST_INSTALL=${TEST_INSTALL}")
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -n "${RUN_API_EXAMPLES}" ]; then
 | 
			
		||||
  BUILD_OPTS+=("--build-arg" "RUN_API_EXAMPLES=${RUN_API_EXAMPLES}")
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -n "${RUN_SYSTEM_TESTS}" ]; then
 | 
			
		||||
  BUILD_OPTS+=("--build-arg" "RUN_SYSTEM_TESTS=${RUN_SYSTEM_TESTS}")
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue