.gitlab-ci.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. before_script:
  2. - "apt-get update -qq"
  3. - "apt-get upgrade -y"
  4. - "apt-get install -y --fix-missing git openssh-client 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 && make install"
  23. test:
  24. script:
  25. - "make test-full-online"
  26. update:
  27. script:
  28. - echo "merging from torgit"
  29. - git clone git@oniongit.eu:hiro/tor.git
  30. - "cd tor"
  31. - git remote add upstream https://git.torproject.org/tor.git
  32. - git checkout master
  33. - git config --global user.email "labadmin@oniongit.eu"
  34. - git config --global user.name "gitadmin"
  35. - git pull -Xtheirs upstream master
  36. - git push origin master