mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-26 08:01:06 +00:00
Try avoiding some of the sudo'ing
This commit is contained in:
parent
2896370880
commit
4d15504e4a
@ -60,6 +60,7 @@ jobs:
|
||||
debian-9: &DEBIAN
|
||||
docker:
|
||||
- image: "tahoelafsci/debian:9"
|
||||
user: "nobody"
|
||||
|
||||
environment: &UTF_8_ENVIRONMENT
|
||||
# Tell Hypothesis which configuration we want it to use.
|
||||
@ -84,14 +85,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- "checkout"
|
||||
- run:
|
||||
name: "Fix permissions"
|
||||
command: |
|
||||
chown --recursive nobody:nogroup /tmp/project
|
||||
- run: &SETUP_VIRTUALENV
|
||||
name: "Setup virtualenv"
|
||||
command: |
|
||||
sudo --set-home -u nobody /tmp/project/.circleci/setup-virtualenv.sh \
|
||||
/tmp/project/.circleci/setup-virtualenv.sh \
|
||||
"/tmp/venv" \
|
||||
"/tmp/project" \
|
||||
"${WHEELHOUSE_PATH}" \
|
||||
|
@ -47,12 +47,10 @@ fi
|
||||
#
|
||||
# Send the output directly to a file because transporting the binary subunit2
|
||||
# via tox and then scraping it out is hideous and failure prone.
|
||||
sudo \
|
||||
SUBUNITREPORTER_OUTPUT_PATH="${SUBUNIT2}" \
|
||||
TAHOE_LAFS_TRIAL_ARGS="--reporter=subunitv2-file --rterrors" \
|
||||
PIP_NO_INDEX="1" \
|
||||
--set-home \
|
||||
--user nobody \
|
||||
export SUBUNITREPORTER_OUTPUT_PATH="${SUBUNIT2}"
|
||||
export TAHOE_LAFS_TRIAL_ARGS="--reporter=subunitv2-file --rterrors"
|
||||
export PIP_NO_INDEX="1"
|
||||
|
||||
${BOOTSTRAP_VENV}/bin/tox \
|
||||
-c ${PROJECT_ROOT}/tox.ini \
|
||||
--workdir /tmp/tahoe-lafs.tox \
|
||||
|
Loading…
Reference in New Issue
Block a user