mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
update pipeline
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
17c894fa62
commit
66283a1722
|
@ -1,4 +1,9 @@
|
|||
|
||||
variables:
|
||||
cmakeStdArgs: '-DBUILD_DOTNET_BINDINGS=True -DBUILD_JAVA_BINDINGS=True -DBUILD_PYTHON_BINDINGS=True -G "Ninja" ../'
|
||||
asanEnv: 'CXXFLAGS="${CXXFLAGS} -fsanitize=address -fno-omit-frame-pointer" {CFLAGS} -fsanitize=address -fno-omit-frame-pointer"'
|
||||
ubsanEnv: 'CXXFLAGS="${CXXFLAGS} -fsanitize=undefined" CFLAGS="${CFLAGS} -fsanitize=undefined"'
|
||||
|
||||
jobs:
|
||||
|
||||
- job: "LinuxPythonDebug"
|
||||
|
@ -21,7 +26,10 @@ jobs:
|
|||
- script: python z3test/scripts/test_benchmarks.py build/z3 z3test/regressions/smt2
|
||||
|
||||
|
||||
# TBD: specify a matrix of options that are used in the cmake line.
|
||||
# TBD:
|
||||
# test python bindings
|
||||
# build documentation
|
||||
# Asan, ubsan, msan
|
||||
|
||||
- job: "LinuxCMake"
|
||||
displayName: "Ubuntu build - cmake"
|
||||
|
@ -30,11 +38,20 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
debugClang:
|
||||
cmdLine: 'CC=clang CXX=clang++ cmake -DBUILD_DOTNET_BINDINGS=True -DBUILD_JAVA_BINDINGS=True -G "Ninja" ../'
|
||||
cmdLine: 'CC=clang CXX=clang++ cmake $(cmakeStdArgs)'
|
||||
runUnitTest: True
|
||||
releaseClang:
|
||||
cmdLine: 'CC=clang CXX=clang++ cmake -DBUILD_DOTNET_BINDINGS=True -DBUILD_JAVA_BINDINGS=True -DCMAKE_BUILD_TYPE=Release -G "Ninja" ../'
|
||||
cmdLine: 'CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release $(cmakeStdArgs)'
|
||||
runUnitTest: True
|
||||
debugGcc:
|
||||
cmdLine: 'CC=gcc CXX=g++ cmake -DBUILD_DOTNET_BINDINGS=True -DBUILD_JAVA_BINDINGS=True -G "Ninja" ../'
|
||||
cmdLine: 'CC=gcc CXX=g++ cmake $(cmakeStdArgs)'
|
||||
runUnitTest: True
|
||||
gccX86:
|
||||
cmdLine: 'CXXFLAGS="${CXXFLAGS} -m32" CFLAGS="${CFLAGS} -m32" CC=gcc-5 CXX=g++-5 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo $(cmakeStdArgs)'
|
||||
runUnitTest: True
|
||||
asan:
|
||||
cmdLine: '$(asanEnv) cmake $(cmakeStdArgs)'
|
||||
runUnitTest: False
|
||||
steps:
|
||||
- script: sudo apt-get install ninja-build
|
||||
- script: |
|
||||
|
@ -51,7 +68,6 @@ jobs:
|
|||
examples/cpp_example_build_dir/cpp_example
|
||||
examples/tptp_build_dir/z3_tptp5 -help
|
||||
examples/c_maxsat_example_build_dir/c_maxsat_example ../examples/maxsat/ex.smt
|
||||
# TBD: add python examples
|
||||
mkdir -p examples/java
|
||||
cp ../examples/java/JavaExample.java examples/java/
|
||||
javac examples/java/Javaexamplejava -classpath com.microsoft.z3.jar
|
||||
|
@ -59,6 +75,11 @@ jobs:
|
|||
java -cp .:examples/java:com.microsoft.z3.jar JavaExample
|
||||
./test-z3 -a
|
||||
cd ..
|
||||
- script: |
|
||||
cd build
|
||||
./test-z3 -a
|
||||
cd ..
|
||||
condition: $(runUnitTest)
|
||||
- script: git clone https://github.com/z3prover/z3test z3test
|
||||
- script: python z3test/scripts/test_benchmarks.py build/z3 z3test/regressions/smt2
|
||||
|
||||
|
@ -100,7 +121,7 @@ jobs:
|
|||
- script: |
|
||||
mkdir build
|
||||
cd build
|
||||
CC=clang CXX=clang++ cmake -DBUILD_DOTNET_BINDINGS=True -DBUILD_JAVA_BINDINGS=True -G "Ninja" ../
|
||||
CC=clang CXX=clang++ $(cmakeStdArgs)
|
||||
ninja
|
||||
ninja test-z3
|
||||
ninja c_example
|
||||
|
|
|
@ -33,13 +33,6 @@ else
|
|||
ADDITIONAL_Z3_OPTS+=('-DBUILD_LIBZ3_SHARED=ON')
|
||||
fi
|
||||
|
||||
# Use OpenMP?
|
||||
if [ "X${USE_OPENMP}" = "X1" ]; then
|
||||
ADDITIONAL_Z3_OPTS+=('-DUSE_OPENMP=ON')
|
||||
else
|
||||
ADDITIONAL_Z3_OPTS+=('-DUSE_OPENMP=OFF')
|
||||
fi
|
||||
|
||||
# Use LibGMP?
|
||||
if [ "X${USE_LIBGMP}" = "X1" ]; then
|
||||
ADDITIONAL_Z3_OPTS+=('-DUSE_LIB_GMP=ON')
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
pool:
|
||||
name: Hosted
|
||||
demands: Cmd
|
||||
|
||||
steps:
|
||||
- task: DotNetCoreInstaller@0
|
||||
displayName: 'Use .NET Core sdk 2.1'
|
||||
inputs:
|
||||
version: 2.1.300
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'scripts\vsts-vs2013.cmd'
|
||||
inputs:
|
||||
filename: 'scripts\vsts-vs2013.cmd'
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
pool:
|
||||
name: Hosted
|
||||
demands: Cmd
|
||||
|
||||
steps:
|
||||
- task: DotNetCoreInstaller@0
|
||||
displayName: 'Use .NET Core sdk 2.1'
|
||||
inputs:
|
||||
version: 2.1.300
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'scripts\vsts-vs2017.cmd'
|
||||
inputs:
|
||||
filename: 'scripts\vsts-vs2017.cmd'
|
||||
arguments: 'x64'
|
||||
|
Loading…
Reference in a new issue