github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/buildslave-config.yaml (about)

     1  # This file contains llgo's configuration for the buildbot-slave Juju charm.
     2  # 
     3  # The slave is deployed with the following command in a Juju environment:
     4  #     juju deploy cs:~axwalk/buildbot-slave --config buildslave-config.yaml
     5  #
     6  # The charm generates a random password on first run, in the file
     7  # /srv/buildbot/password. If the password is regenerated, it must
     8  # be updated in the buildbot master.
     9  #
    10  buildbot-slave:
    11    name: llgo-builder
    12    master: lab.llvm.org:9990
    13    admin-info: Andrew Wilkins <axwalk@gmail.com>
    14    apt-packages: subversion git cmake gcc g++ gccgo python-dev
    15    pip-versions: sqlalchemy==0.7.9 buildbot==0.8.5 buildbot_slave==0.8.5 twisted==12.0.0
    16    post-install: |
    17        #!/bin/bash
    18        #
    19        # Fetch, build and install Ninja.
    20        rm -fr /tmp/ninja
    21        cd /tmp && git clone git://github.com/martine/ninja.git
    22        cd /tmp/ninja && ./configure.py --bootstrap
    23        cp /tmp/ninja/ninja /usr/local/bin
    24        # Fetch and unpack Go.
    25        cd /tmp && wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
    26        sha1sum <<EOF
    27        5020af94b52b65cc9b6f11d50a67e4bae07b0aff go1.4.2.linux-amd64.tar.gz
    28        EOF
    29        cd /usr/local && tar xzf /tmp/go1.4.2.linux-amd64.tar.gz
    30        ln -f -s /usr/local/go/bin/go /usr/local/bin/go
    31