Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 123
    • Merge requests 123
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !1188

Merged
Created Jun 02, 2022 by Thomas Leymonerie@tleymoneContributor

Custom virtual environment

  • Overview 11
  • Commits 3
  • Changes 2

This MR follows !1135 (merged).

Currently, slapos-testing and slapos-sr-testing create a virtual testing environment.
Their virtual environments work almost like virtual-env.cfg, so I modified my macro to create a fully customized virtual environment.

I added the environment option which allows you to choose your custom environment variables.
I also added a message option that prints a string.

Finally, I modified slapos-testing and slapos-sr-testing to use my virtual-env macro instead of a hard-coded virtual environment.

The interest is that now we can know if you are in a test environment.
Moreover, you can deactivate the environment.

Edited Jul 20, 2022 by Thomas Leymonerie
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: custom-virtual-env
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7