.gitlab-ci.yml 1.6 KB

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