Files
unison/utils/tests/gitlab-ci-pybindgen.yml

87 lines
2.8 KiB
YAML

pybindgen-21.04:
image: ubuntu:21.04 # python 3.9
only:
variables:
- $RELEASE == "weekly"
before_script:
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y g++ cmake ninja-build ccache libgsl-dev libgtk-3-dev libboost-dev wget git python3 python3-pip
- pip install cxxfilt pygccxml pybindgen castxml
script:
- ./ns3 configure -G Ninja -- -DNS3_SCAN_PYTHON_BINDINGS=ON
- ./ns3 build apiscan-all
- ./ns3 configure --enable-python-bindings
- ./ns3 build
- ./ns3 run first.py
- ./ns3 run second.py
- ./ns3 run third.py
- ./ns3 run ./utils/python-unit-tests.py
- git diff src > pybindgen_new2104.patch
artifacts:
paths:
- pybindgen_new2104.patch
timeout: 9h
pybindgen-20.04:
image: ubuntu:20.04 # python 3.8
only:
variables:
- $RELEASE == "manual"
before_script:
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y g++ cmake ninja-build ccache libgsl-dev libgtk-3-dev libboost-dev wget git python3 python3-pip
- pip install cxxfilt pygccxml pybindgen castxml
script:
- ./ns3 configure -G Ninja -- -DNS3_SCAN_PYTHON_BINDINGS=ON
- ./ns3 build apiscan-all
- ./ns3 configure --enable-python-bindings
- ./ns3 build
- ./ns3 run first.py
- ./ns3 run second.py
- ./ns3 run third.py
- ./ns3 run ./utils/python-unit-tests.py
- git diff src > pybindgen_new2004.patch
artifacts:
paths:
- pybindgen_new2004.patch
timeout: 9h
pybindgen-18.04:
image: ubuntu:18.04 # python 3.6
only:
variables:
- $RELEASE == "manual"
before_script:
- apt-get update
- apt-get install -y software-properties-common
- add-apt-repository ppa:ubuntu-toolchain-r/test --yes
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y cmake ninja-build ccache libgsl-dev libgtk-3-dev libboost-dev wget git g++-9 gcc-9 python3 python3-pip llvm-dev libclang-dev
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 800 --slave /usr/bin/g++ g++ /usr/bin/g++-9
- pip3 install setuptools distro requests cxxfilt
- git clone https://gitlab.com/nsnam/bake.git
- export PATH=$PATH:`pwd`/bake/build/bin
- export PYTHONPATH=$PYTHONPATH:`pwd`/bake/build/lib
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/bake/build/lib
- cd bake
- mkdir -p build/lib
- ./bake.py configure -e pygccxml -e pybindgen
- ./bake.py download
- ./bake.py build
- cd ..
script:
- CXX=g++-9 ./ns3 configure -G Ninja -- -DNS3_SCAN_PYTHON_BINDINGS=ON
- ./ns3 build apiscan-all
- ./ns3 configure --enable-python-bindings
- ./ns3 build
- ./ns3 run first.py
- ./ns3 run second.py
- ./ns3 run third.py
- ./ns3 run ./utils/python-unit-tests.py
- git diff src > pybindgen_new1804.patch
artifacts:
paths:
- pybindgen_new1804.patch
timeout: 9h