Skip to content
Snippets Groups Projects
Commit cd476291 authored by Millian Poquet's avatar Millian Poquet
Browse files

ci: build/test python stuff

parent 7bab6d38
No related branches found
No related tags found
No related merge requests found
......@@ -12,19 +12,28 @@ stages:
debian:
stage: unique_stage
image: debian:unstable-slim
# we could cache dependencies installation in our own Dockerfile
script:
# Get various dependencies
- apt update -y
- apt install -y g++ libsimgrid-dev libzmq3-dev libprotobuf-dev protobuf-compiler libgtest-dev meson ninja-build pkg-config
- apt install -y g++ libsimgrid-dev libzmq3-dev libprotobuf-dev protobuf-compiler libgtest-dev meson ninja-build pkg-config python3 python3-pip
# Build protocol (c++)
- (cd protocol && meson setup build --prefix=/usr && ninja -C build && meson install -C build)
# Build client (c++)
- (cd client-cpp && meson setup build --prefix=/usr && ninja -C build && meson install -C build)
# Build simulator (c++)
- (cd simgrid-simulator && meson setup build --prefix=/usr -Ddo_unit_tests=true && ninja -C build && meson install -C build)
# Build protocol (python)
- (cd protocol && pip install .)
# Build client (python)
- (cd client-py && pip install .)
# Run unit tests (simgrid simulator, c++)
- (cd simgrid-simulator && meson test -C build)
# Run integration tests (simgrid simulator VS c++ client)
- test/simulator-cpp-client.sh
# Run integration tests (simgrid simulator VS python client)
- test/simulator-py-client.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment