-if [ ! -z "$TOX_ENVS" ]; then
- detox -e "$TOX_ENVS" | tee -a "$ARCHIVE_TOX_DIR/detox.log"
- detox_status="${PIPESTATUS[0]}"
+
+PARALLEL="${PARALLEL:-true}"
+if [ "${PARALLEL}" = true ]; then
+ if [ ! -z "$TOX_ENVS" ]; then
+ detox -e "$TOX_ENVS" | tee -a "$ARCHIVE_TOX_DIR/detox.log"
+ tox_status="${PIPESTATUS[0]}"
+ else
+ detox | tee -a "$ARCHIVE_TOX_DIR/detox.log"
+ tox_status="${PIPESTATUS[0]}"
+ fi