Skip to content
Snippets Groups Projects

Resolve "Wolf license"

Merged Joan Vallvé Navarro requested to merge 198-wolf-license into devel
1 file
+ 21
0
Compare changes
  • Side-by-side
  • Inline
+ 21
0
@@ -10,10 +10,31 @@
@@ -10,10 +10,31 @@
- make install
- make install
stages:
stages:
 
- license
- build_and_test
- build_and_test
- deploy
- deploy
- final
- final
 
license_header:
 
stage: license
 
image: labrobotica/wolf_deps:16.04
 
before_script:
 
- 'which ssh-agent || ( apt-get update -qy && apt-get install openssh-client -qqy )'
 
- eval `ssh-agent -s`
 
- echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null # add ssh ke
 
- mkdir -p ~/.ssh
 
- chmod 700 ~/.ssh
 
- echo "$SSH_PUBLIC_KEY" >> ~/.ssh/id_rsa.pub
 
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
 
script:
 
- git config --global user.email "${CI_EMAIL}"
 
- git config --global user.name "${CI_USERNAME}"
 
- touch prova.txt
 
- git add -f prova.txt
 
- git commit -m "added prova.txt" || echo "No changes, nothing to commit!"
 
- git remote rm origin && git remote add origin git@gitlab.com:$CI_PROJECT_PATH.git
 
- git push origin HEAD:$CI_COMMIT_REF_NAME # Pushes to the same branch as the trigger
 
build_and_test:xenial:
build_and_test:xenial:
stage: build_and_test
stage: build_and_test
image: labrobotica/wolf_deps:16.04
image: labrobotica/wolf_deps:16.04
Loading