bromite-buildtools/images/bromite-build/pre-start.sh

32 lines
967 B
Bash
Raw Normal View History

2021-06-19 15:16:24 +05:30
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color
WORKSPACE=/home/lg/working_dir
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$PATH
2021-07-02 17:04:38 +05:30
sudo apt-get install -y lsof libgoogle-glog-dev libprotobuf17 libgrpc++1 parallel golang-go
echo -e ${RED} -------- download mtool ${NC}
git clone https://github.com/bromite/mtool
cd mtool
make
echo -e ${RED} -------- download goma client ${NC}
cd $WORKSPACE
2021-06-19 15:16:24 +05:30
cipd install infra/goma/client/linux-amd64 -root $WORKSPACE/goma
echo "nomatter" >$WORKSPACE/.debug_auth_file
sudo cp $WORKSPACE/goma_auth.py $WORKSPACE/goma/
2021-08-14 21:14:28 +05:30
echo -e ${RED} -------- prepare vpython virtual environment
sudo mkdir /github/home/.vpython_cipd_cache
sudo chown lg /github/home/.vpython_cipd_cache
sudo mkdir /github/home/.vpython-root
sudo chown lg /github/home/.vpython-root
vpython -vpython-spec ~/working_dir/chromium/src/.vpython -vpython-log-level debug -vpython-tool install