.gitlab-ci.yml 1.5 KB

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