.gitlab-ci.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. before_script:
  2. - "apt-get update -qq"
  3. - "apt-get upgrade -y"
  4. build:
  5. script:
  6. - "apt-get install -y --fix-missing git openssh-client asciidoc wget gcc g++ automake cmake make libglib2.0 libglib2.0-dev libigraph0 libigraph0-dev libevent-dev openssl libssl-dev"
  7. - "sh autogen.sh && ./configure && make"
  8. - "make check"
  9. - "make install"
  10. update:
  11. script:
  12. - "apt-get install -y --fix-missing git openssh-client"
  13. -
  14. # Run ssh-agent (inside the build environment)
  15. - eval $(ssh-agent -s)
  16. # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
  17. - ssh-add <(echo "$DEPLOY_KEY")
  18. # For Docker builds disable host key checking. Be aware that by adding that
  19. # you are suspectible to man-in-the-middle attacks.
  20. # WARNING: Use this only with the Docker executor, if you use it with shell
  21. # you will overwrite your user's SSH config.
  22. - mkdir -p ~/.ssh
  23. - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
  24. # In order to properly check the server's host key, assuming you created the
  25. # SSH_SERVER_HOSTKEYS variable previously, uncomment the following two lines
  26. # instead.
  27. - mkdir -p ~/.ssh
  28. - '[[ -f /.dockerenv ]] && echo "$SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts'
  29. - echo "merging from torgit"
  30. - "cd tor"
  31. - "mkdir tor"
  32. - git clone --bare https://git.torproject.org/tor.git
  33. - git checkout master
  34. - git config --global user.email "labadmin@oniongit.eu"
  35. - git config --global user.name "gitadmin"
  36. - git push --mirror git@oniongit.eu:hiro/tor.git