diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0c608c8a1f31c9e3a1255371e2754c520e7c20e4..740a8dce0599569f5893fd6073e558b60b0ee4d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,4 @@ - image: docker.io/alopeziri/labrobotica - - #variables: - #GIT_SUBMODULE_STRATEGY: recursive - - before_script: - - apt update - - apt -y install git #add to docker image? - - apt -y install sudo #needed for sudo commands in privileges.sh script - - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - - eval $(ssh-agent -s) - - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh - - ssh-keyscan -p 2202 gitlab.iri.upc.edu >> ~/.ssh/known_hosts - - chmod 644 ~/.ssh/known_hosts - - ssh -p 2202 git@gitlab.iri.upc.edu #test - - git submodule sync --recursive - - git submodule update --init --recursive + image: docker.io/labrobotica/labrobotica stages: - build @@ -26,6 +8,8 @@ build-package: stage: build script: + - git submodule sync --recursive + - git submodule update --init --recursive - apt update - apt -y install iri-iriutils-dev iri-comm-dev iri-dynamixel-dev - apt -y install gcc-avr avr-libc #firmware dependencies