[SERVER-30265] Abstract enabling virtualenv in etc/evergreen.yml Created: 21/Jul/17  Updated: 30/Oct/23  Resolved: 03/Aug/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.5.12

Type: Improvement Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-08-21
Participants:

 Description   

Abstract, similar to ${set_sudo} as follows:

In pre step, command: expansions.update

       - key: activate_virtualenv
         value: |
          # check if virtualenv is set up
          if [ -d "venv" ]; then
            if [ "Windows_NT" = "$OS" ]; then
              . ./venv/Scripts/activate
            else
              . ./venv/bin/activate
            fi
          fi

Invoke as ${activate_virtualenv}



 Comments   
Comment by Githook User [ 10/Aug/17 ]

Author:

{'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com'}

Message: SERVER-30265 Abstract enabling virtualenv in etc/evergreen.yml
Branch: master
https://github.com/mongodb/mongo/commit/a8a9dabfba756661d3015f37b88c53c184669bcd

Generated at Thu Feb 08 04:23:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.