place CI fix into common.sh
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Max Erenberg 2021-10-25 08:18:25 -04:00
parent a0cc29738b
commit 2970736105
2 changed files with 3 additions and 2 deletions

View File

@ -9,8 +9,6 @@ steps:
# unfortunately we have to do everything in one step because there's no # unfortunately we have to do everything in one step because there's no
# way to share system packages between steps # way to share system packages between steps
commands: commands:
# TODO: fix Drone
- chmod 1777 /tmp
# install dependencies # install dependencies
- apt update && apt install -y libkrb5-dev libpq-dev python3-dev - apt update && apt install -y libkrb5-dev libpq-dev python3-dev
- python3 -m venv venv - python3 -m venv venv

View File

@ -1,3 +1,6 @@
# TODO: fix Drone
chmod 1777 /tmp
# don't resolve container names to *real* CSC machines # don't resolve container names to *real* CSC machines
sed -E '/^(domain|search)[[:space:]]+csclub.uwaterloo.ca/d' /etc/resolv.conf > /tmp/resolv.conf sed -E '/^(domain|search)[[:space:]]+csclub.uwaterloo.ca/d' /etc/resolv.conf > /tmp/resolv.conf
cp /tmp/resolv.conf /etc/resolv.conf cp /tmp/resolv.conf /etc/resolv.conf