.gitlab-ci.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. only:
  12. - schedules
  13. script:
  14. - "apt-get install -y --fix-missing git openssh-client"
  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 config --global user.email "labadmin@oniongit.eu"
  32. - git config --global user.name "gitadmin"
  33. - "mkdir tor"
  34. - "cd tor"
  35. - git clone --bare https://git.torproject.org/tor.git
  36. - git push --mirror git@oniongit.eu:network/tor.git