.gitlab-ci.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. # Run ssh-agent (inside the build environment)
  14. - eval $(ssh-agent -s)
  15. # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
  16. - ssh-add <(echo "$DEPLOY_KEY")
  17. # For Docker builds disable host key checking. Be aware that by adding that
  18. # you are suspectible to man-in-the-middle attacks.
  19. # WARNING: Use this only with the Docker executor, if you use it with shell
  20. # you will overwrite your user's SSH config.
  21. - mkdir -p ~/.ssh
  22. - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
  23. # In order to properly check the server's host key, assuming you created the
  24. # SSH_SERVER_HOSTKEYS variable previously, uncomment the following two lines
  25. # instead.
  26. - mkdir -p ~/.ssh
  27. - '[[ -f /.dockerenv ]] && echo "$SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts'
  28. - echo "merging from torgit"
  29. - git config --global user.email "labadmin@oniongit.eu"
  30. - git config --global user.name "gitadmin"
  31. - "mkdir tor"
  32. - "cd tor"
  33. - git clone --bare https://git.torproject.org/tor.git
  34. - git push --mirror git@oniongit.eu:network/tor.git