mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	The Linux builds rely on Docker (using Ubuntu 16.04LTS and Ubuntu 14.04LTS) to build and test Z3 so that builds are easily reproducible. A build status button has been added to `README.md` so that it is easy to see the current build status. More documentation can be found in `contrib/ci/README.md`. This implementation currently tests 13 different configurations. If build times become too long we can remove some of them. Although it would be nice to test macOS builds that requires significantly more work so I have left this as future work.
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			821 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			821 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM ubuntu:14.04
 | |
| 
 | |
| RUN apt-get update && \
 | |
|     apt-get -y --no-install-recommends install \
 | |
|         binutils \
 | |
|         clang-3.9 \
 | |
|         cmake \
 | |
|         doxygen \
 | |
|         default-jdk \
 | |
|         gcc-multilib \
 | |
|         gcc-4.8-multilib \
 | |
|         git \
 | |
|         graphviz \
 | |
|         g++-multilib \
 | |
|         g++-4.8-multilib \
 | |
|         libgmp-dev \
 | |
|         libgomp1 \
 | |
|         lib32gomp1 \
 | |
|         make \
 | |
|         mono-devel \
 | |
|         ninja-build \
 | |
|         python3 \
 | |
|         python3-setuptools \
 | |
|         python2.7 \
 | |
|         python-setuptools
 | |
| 
 | |
| # Create `user` user for container with password `user`.  and give it
 | |
| # password-less sudo access
 | |
| RUN useradd -m user && \
 | |
|     echo user:user | chpasswd && \
 | |
|     cp /etc/sudoers /etc/sudoers.bak && \
 | |
|     echo 'user  ALL=(root) NOPASSWD: ALL' >> /etc/sudoers
 | |
| USER user
 | |
| WORKDIR /home/user
 | |
| 
 |