Commit 9c95b800 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Download Makefile and config.sh from gepgitlab if in continuous integration.

parent df8f7bf2
Pipeline #750 canceled with stages
in 3 minutes and 45 seconds
...@@ -9,7 +9,7 @@ variables: ...@@ -9,7 +9,7 @@ variables:
script: script:
- export INSTALL_DOCUMENTATION=OFF - export INSTALL_DOCUMENTATION=OFF
- cp -r /clean_workspace $DEVEL_HPP_DIR - cp -r /clean_workspace $DEVEL_HPP_DIR
- /auto-install-hpp.sh --branch ${CI_COMMIT_REF_NAME} --target benchmark - $CI_PROJECT_DIR/script/auto-install-hpp.sh --branch ${CI_COMMIT_REF_NAME} --gitrepo https://gepgitlab.laas.fr/humanoid-path-planner/hpp-doc/raw --target benchmark
artifacts: artifacts:
paths: paths:
- workspace - workspace
......
...@@ -34,6 +34,7 @@ case $HOST_DIST in ...@@ -34,6 +34,7 @@ case $HOST_DIST in
;; ;;
esac esac
GITREPO="https://raw.githubusercontent.com/humanoid-path-planner/hpp-doc"
MAKE_TARBALL=false MAKE_TARBALL=false
TARGET=all TARGET=all
...@@ -51,6 +52,11 @@ do ...@@ -51,6 +52,11 @@ do
--mktar) --mktar)
MAKE_TARBALL=true MAKE_TARBALL=true
;; ;;
--gitrepo)
shift
GITREPO=$1
echo "Will download Makefile and config.sh from $GITREPO"
;;
--show-dep) --show-dep)
echo "Will install" echo "Will install"
echo "${APT_DEP}" echo "${APT_DEP}"
...@@ -71,6 +77,7 @@ do ...@@ -71,6 +77,7 @@ do
--help) --help)
echo "Options are" echo "Options are"
echo "--branch: \tbranch which should be installed" echo "--branch: \tbranch which should be installed"
echo "--gitrepo: \trepository where to download makefile and config.sh"
echo "--mktar: \tmake tar balls after compilation" echo "--mktar: \tmake tar balls after compilation"
echo "--show-dep: \tshow dependencies resolved by aptitude" echo "--show-dep: \tshow dependencies resolved by aptitude"
echo "--target TARGET: \tinstall TARGET (default: all)" echo "--target TARGET: \tinstall TARGET (default: all)"
...@@ -116,8 +123,8 @@ mkdir --parents $DEVEL_HPP_DIR/src ...@@ -116,8 +123,8 @@ mkdir --parents $DEVEL_HPP_DIR/src
mkdir --parents $DEVEL_HPP_DIR/install mkdir --parents $DEVEL_HPP_DIR/install
# Get config script # Get config script
wget -q -O $DEVEL_HPP_DIR/config.sh https://raw.githubusercontent.com/humanoid-path-planner/hpp-doc/${BRANCH}/doc/config/${CONFIG_FILE} wget -q -O $DEVEL_HPP_DIR/config.sh ${GITREPO}/${BRANCH}/doc/config/${CONFIG_FILE}
wget -q -O $DEVEL_HPP_DIR/src/Makefile https://raw.githubusercontent.com/humanoid-path-planner/hpp-doc/${BRANCH}/doc/Makefile wget -q -O $DEVEL_HPP_DIR/src/Makefile ${GITREPO}/${BRANCH}/doc/Makefile
source $DEVEL_HPP_DIR/config.sh source $DEVEL_HPP_DIR/config.sh
......
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