.gitlab-ci.yml 1.57 KB
Newer Older
Hiro's avatar
Hiro committed
1
before_script:
Hiro's avatar
Hiro committed
2
3
    - "apt-get update -qq"
    - "apt-get upgrade -y"
Hiro's avatar
Fix yml    
Hiro committed
4

Hiro's avatar
Hiro committed
5
6
build:
  script:
Hiro's avatar
Hiro committed
7
    - "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"
Hiro's avatar
Hiro committed
8
9
10
    - "sh autogen.sh && ./configure && make"
    - "make check"
    - "make install"
Hiro's avatar
Hiro committed
11

Hiro's avatar
Hiro committed
12
update:
13
14
  only:
    - schedules
Hiro's avatar
Hiro committed
15
  script: 
Hiro's avatar
Hiro committed
16
    - "apt-get install -y --fix-missing git openssh-client"
Hiro's avatar
Fix yml    
Hiro committed
17
    
Hiro's avatar
Hiro committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    # Run ssh-agent (inside the build environment)
    - eval $(ssh-agent -s)

    # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
    - ssh-add <(echo "$DEPLOY_KEY")

    # For Docker builds disable host key checking. Be aware that by adding that
    # you are suspectible to man-in-the-middle attacks.
    # WARNING: Use this only with the Docker executor, if you use it with shell
    # you will overwrite your user's SSH config.
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
    # In order to properly check the server's host key, assuming you created the
    # SSH_SERVER_HOSTKEYS variable previously, uncomment the following two lines
    # instead.
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] && echo "$SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts'
Hiro's avatar
Hiro committed
35
    - echo "merging from torgit"
Hiro's avatar
Hiro committed
36
37
    - git config --global user.email "labadmin@oniongit.eu"
    - git config --global user.name "gitadmin"
Hiro's avatar
Fix yml    
Hiro committed
38
39
40
    - "mkdir tor"
    - "cd tor" 
    - git clone --bare https://git.torproject.org/tor.git
41
    - git push --mirror git@oniongit.eu:network/tor.git