-image: debian:testing
+image: simgrid/build-deps
pages:
script:
- - apt update
- - apt install -y libboost-all-dev libboost-dev python3-pip doxygen fig2dev
- pip3 install --requirement docs/requirements.txt
- cd docs
- ./Build.sh
only:
- master
-tests:
+ctest:
script:
- - apt update
- - apt install -y libboost-all-dev libboost-dev cmake chrpath default-jdk valgrind gfortran build-essential
- cmake -Denable_model-checking=OFF -Denable_documentation=OFF -Denable_coverage=ON -Denable_java=ON -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=ON .
- make VERBOSE=1 && ctest --output-on-failure
--- /dev/null
+# Base image
+FROM debian:testing
+
+# - Install SimGrid's dependencies
+RUN apt update && \
+ apt install -y \
+ g++ gcc gfortran default-jdk \
+ git \
+ valgrind \
+ libboost-dev libboost-all-dev \
+ cmake \
+ python3-pip \
+ doxygen fig2dev \
+ chrpath \
+ libdw-dev libevent-dev libunwind8-dev
+
\ No newline at end of file
default:
- @echo "Try make stable, make unstable, make tuto-s4u or make push."
+ @echo "Existing Targets:"
+ @echo " make build-deps -> build an image with all possible SimGrid dependencies"
+ @echo " make stable -> build the latest stable version of SimGrid (with SMPI w/o MC)"
+ @echo " make unstable -> build the git version of SimGrid (with SMPI, w/o MC)"
+ @echo " make tuto-s4u -> build all what you need to take the S4U tutorial"
+ @echo " make push -> push all images to the cloud"
+ @echo "All our images are based on debian:testing"
@echo "Also possible: DOCKER_EXTRA=--no-cache make unstable"
stable:
$(DOCKER_EXTRA) \
. | tee > unstable.log
+build-deps:
+ docker build -f Dockerfile.build-deps \
+ -t simgrid/build-deps:latest \
+ -t simgrid/build-deps:$$(date --iso-8601) \
+ $(DOCKER_EXTRA) \
+ . | tee > build-deps.log
+
tuto-s4u:
docker build -f Dockerfile.tuto-s4u \
-t simgrid/tuto-s4u:latest \
. | tee > tuto.log
push:
+ docker push simgrid/build-deps
docker push simgrid/stable
docker push simgrid/unstable
docker push simgrid/tuto-s4u