Commit 6c11acde authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

checkout main package if the current is a python binding

parent f00bff1c
Pipeline #1474 passed with stages
in 1 minute and 12 seconds
......@@ -666,6 +666,10 @@ class Robotpkg(NamedModel):
def valid_images(self):
return self.image_set.filter(created__isnull=False, target__active=True).order_by('target__name')
def without_py(self):
if 'py-' in self.name:
return Robotpkg.objects.filter(name=self.name.replace('py-', '')).first()
# class RobotpkgBuild(TimeStampedModel):
# robotpkg = models.ForeignKey(Robotpkg, on_delete=models.CASCADE)
......
......@@ -15,8 +15,12 @@ cache:
- gh-pages
script:
- mkdir -p ccache
- cd /root/robotpkg/{{ robotpkg.category }}/{{ robotpkg }}
- cd /root/robotpkg/{{ robotpkg.category }}
- git pull
{% if robotpkg.without_py %} - cd {{ robotpkg.without_py }}
- make checkout MASTER_REPOSITORY="dir ${CI_PROJECT_DIR}"
- cd ..
{% endif %} - cd {{ robotpkg }}
- make checkout MASTER_REPOSITORY="dir ${CI_PROJECT_DIR}"
- make install
- cd work.$(hostname)/$(make show-var VARNAME=DISTNAME)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment