Commit 8362a642 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

buildfarm v1.0.0

parent 762f8d07
ARG TARGET
ARG REGISTRY=eur0c.laas.fr:4567 ARG REGISTRY=eur0c.laas.fr:4567
ARG FROM=gsaurel/buildfarm/robotpkg ARG NAMESPACE=gsaurel/buildfarm
ARG IMAGE=robotpkg
ARG TARGET=14.04
FROM ${REGISTRY}/${FROM}:${TARGET} FROM ${REGISTRY}/${NAMESPACE}/${IMAGE}:${TARGET}
ARG ROBOTPKG ARG ROBOTPKG
ARG ROBOTPKG_DEPS=true ARG ROBOTPKG_DEPS=true
......
...@@ -581,7 +581,10 @@ class Image(models.Model): ...@@ -581,7 +581,10 @@ class Image(models.Model):
return f'{self.robotpkg}-{self.get_target_display()}' return f'{self.robotpkg}-{self.get_target_display()}'
def get_build_args(self): def get_build_args(self):
return {'TARGET': self.get_target_display(), 'ROBOTPKG': self.robotpkg} ret = {'TARGET': self.get_target_display(), 'ROBOTPKG': self.robotpkg}
if not self.robotpkg.project.public:
ret['IMAGE'] = 'robotpkg-jrl'
return ret
def get_image_name(self): def get_image_name(self):
project = self.robotpkg.project project = self.robotpkg.project
......
...@@ -22,12 +22,13 @@ cache: ...@@ -22,12 +22,13 @@ cache:
- export CCACHE_DIR=${PWD}/ccache - export CCACHE_DIR=${PWD}/ccache
script: script:
- cd /root/robotpkg/${CATEGORY}/${ROBOTPKG} - cd /root/robotpkg/${CATEGORY}/${ROBOTPKG}
- echo "MASTER_REPOSITORY=git ${CI_PROJECT_DIR}" >> Makefile - git pull
- echo "MASTER_REPOSITORY = git ${CI_PROJECT_DIR}" >> Makefile
- echo "REPOSITORY.{{ robotpkg }} = git ${CI_PROJECT_DIR}" >> /opt/openrobots/etc/robotpkg.conf
- make checkout - make checkout
- make install - make install
- cd work.*/${PROJECT}*/ - cd work.*/${PROJECT}*/
- make test - make test
retry: 2
except: except:
- gh-pages - gh-pages
......
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