Commit 27b1d6b9 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by jcarpent
Browse files

[Gitlab-ci] Create .gitlab-ci.yml & Dockerfiles

parent 0c90f45c
variables:
GIT_SSL_NO_VERIFY: "true"
GIT_SUBMODULE_STRATEGY: "recursive"
GIT_DEPTH: "3"
.build_template: &build
script:
- mkdir build
- cd build
- cmake ..
- make
- make test
- make install
build_minimal_14:
<<: *build
image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:14.04
build_full_14:
<<: *build
image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/full:14.04
build_minimal_16:
<<: *build
image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:16.04
build_full_16:
<<: *build
image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/full:16.04
FROM eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:14.04
RUN apt install -qqy doxygen robotpkg-hpp-fcl liburdfdom-dev
FROM eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:16.04
RUN apt install -qqy doxygen robotpkg-hpp-fcl liburdfdom-dev
FROM eur0c.laas.fr:4567/stack-of-tasks/pinocchio/robotpkg:14.04
RUN apt update -qqy && apt install -qqy \
cmake \
g++ \
pkg-config \
libboost-test-dev \
libboost-filesystem-dev \
libeigen3-dev \
libpython-dev \
libboost-python-dev \
python-numpy \
robotpkg-eigenpy
FROM eur0c.laas.fr:4567/stack-of-tasks/pinocchio/robotpkg:16.04
RUN apt update -qqy && apt install -qqy \
cmake \
g++ \
pkg-config \
libboost-test-dev \
libboost-filesystem-dev \
libeigen3-dev \
libpython-dev \
libboost-python-dev \
python-numpy \
robotpkg-eigenpy
FROM ubuntu:14.04
RUN echo "deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub trusty robotpkg" > /etc/apt/sources.list.d/robotpkg.list
RUN apt-key adv --keyserver hkp://pgp.mit.edu --recv-key BC48D7C832FF7241
ENV OPENROB /opt/openrobots
ENV CMAKE_PREFIX_PATH $OPENROB:$CMAKE_PREFIX_PATH
ENV LD_LIBRARY_PATH $OPENROB/lib:$OPENROB/lib/plugin:$LD_LIBRARY_PATH
ENV PATH $OPENROB/bin:$OPENROB/sbin:$PATH
ENV PKG_CONFIG_PATH $OPENROB/lib/pkgconfig:$PKG_CONFIG_PATH
ENV PYTHONPATH $OPENROB/lib/python2.7/site-packages:$PYTHONPATH
ENV ROS_PACKAGE_PATH $OPENROB/share:$ROS_PACKAGE_PATH
FROM ubuntu:16.04
RUN echo "deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub xenial robotpkg" > /etc/apt/sources.list.d/robotpkg.list
RUN apt-key adv --keyserver hkp://pgp.mit.edu --recv-key BC48D7C832FF7241
ENV OPENROB /opt/openrobots
ENV CMAKE_PREFIX_PATH $OPENROB:$CMAKE_PREFIX_PATH
ENV LD_LIBRARY_PATH $OPENROB/lib:$OPENROB/lib/plugin:$LD_LIBRARY_PATH
ENV PATH $OPENROB/bin:$OPENROB/sbin:$PATH
ENV PKG_CONFIG_PATH $OPENROB/lib/pkgconfig:$PKG_CONFIG_PATH
ENV PYTHONPATH $OPENROB/lib/python2.7/site-packages:$PYTHONPATH
ENV ROS_PACKAGE_PATH $OPENROB/share:$ROS_PACKAGE_PATH
```
docker build -t eur0c.laas.fr:4567/stack-of-tasks/pinocchio/robotpkg:16.04 -f Dockerfile.robotpkg.16 .
docker build -t eur0c.laas.fr:4567/stack-of-tasks/pinocchio/robotpkg:14.04 -f Dockerfile.robotpkg.14 .
docker build -t eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:16.04 -f Dockerfile.minimal.16 .
docker build -t eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:14.04 -f Dockerfile.minimal.14 .
docker build -t eur0c.laas.fr:4567/stack-of-tasks/pinocchio/full:16.04 -f Dockerfile.full.16 .
docker build -t eur0c.laas.fr:4567/stack-of-tasks/pinocchio/full:14.04 -f Dockerfile.full.14 .
docker push eur0c.laas.fr:4567/stack-of-tasks/pinocchio/robotpkg:16.04
docker push eur0c.laas.fr:4567/stack-of-tasks/pinocchio/robotpkg:14.04
docker push eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:16.04
docker push eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:14.04
docker push eur0c.laas.fr:4567/stack-of-tasks/pinocchio/full:16.04
docker push eur0c.laas.fr:4567/stack-of-tasks/pinocchio/full:14.04
```
Supports Markdown
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