.gitlab-ci.yml 1.6 KB

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