From 663f98101cb281c7f1116af5f5c345a4a868ad95 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Fri, 15 Jun 2018 08:54:01 -0400 Subject: [PATCH] Put more of the Tox setup in the setup step This will give more accurate test step timings. --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 09a1739c2..1d60ee193 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -90,9 +90,14 @@ jobs: # suite as a non-root user. See below. sudo --set-home -u nobody virtualenv --python python2.7 /tmp/tests sudo --set-home -u nobody /tmp/tests/bin/pip install tox codecov + # Get everything installed in it, too. + sudo --set-home -u nobody /tmp/tests/bin/tox -c /tmp/project/tox.ini --workdir /tmp --notest -e ${TAHOE_LAFS_TOX_ENVIRONMENT} - run: &RUN_TESTS name: "Run test suite" + # Something about when it re-uses an existing environment blows up + # if the working directory is not readable. + working_directory: "/tmp" command: | # Run the test suite as a non-root user. This is the expected # usage some small areas of the test suite assume non-root