ci-cd: Generate python bindings from Gitlab

This commit is contained in:
Natale Patriciello
2020-08-28 10:36:10 +02:00
parent c8a59fd14b
commit c261cb01cc
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
pybindgen:
stage: build
image: archlinux/base
only:
variables:
- $PYBINDGEN == "True"
before_script:
- pacman -Syu --noconfirm
- pacman -Sy base-devel python ccache gsl libgcrypt gtk3 boost wget git --noconfirm
- wget --no-check-certificate https://nat.onthewifi.net/ns3/castxml-git-0.3.4.r19.g8625aed-1-x86_64.pkg.tar
- wget --no-check-certificate https://nat.onthewifi.net/ns3/python-pybindgen-0.21.0-1-x86_64.pkg.tar
- wget --no-check-certificate https://nat.onthewifi.net/ns3/python-pygccxml-git-1.9.0.r104.g84be336-1-any.pkg.tar
- pacman -U --noconfirm python-pygccxml-git-1.9.0.r104.g84be336-1-any.pkg.tar python-pybindgen-0.21.0-1-x86_64.pkg.tar castxml-git-0.3.4.r19.g8625aed-1-x86_64.pkg.tar
script:
- git clone https://github.com/afq984/python-cxxfilt.git
- mv python-cxxfilt/cxxfilt bindings/python
- CXX="g++" ./waf configure --disable-examples --disable-tests -d debug
- ./waf --apiscan=$MODULE
- git diff src > pybindgen_new.patch
artifacts:
paths:
- pybindgen_new.patch
timeout: 9h

View File

@@ -85,3 +85,4 @@ include:
- 'utils/tests/gitlab-ci-clang.yml'
- 'utils/tests/gitlab-ci-test.yml'
- 'utils/tests/gitlab-ci-doc.yml'
- 'utils/tests/gitlab-ci-pybindgen.yml'