Skip to content

Commit

Permalink
[#54920] .ci.yml: Added usage of venv
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Latosinski <glatosinski@antmicro.com>
  • Loading branch information
glatosinski committed Feb 20, 2024
1 parent 1e7cc42 commit a8c3699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ image: $CI_IMAGE
- scripts/prepare_zephyr_env.sh
- scripts/prepare_modules.sh
- mkdir -p artifacts
- source .venv/bin/activate
script:
- |
if [ "$RUNTIME" != "stub" ]
Expand Down Expand Up @@ -122,6 +123,7 @@ unit-tests:
stage: tests
before_script:
- scripts/prepare_zephyr_env.sh
- source .venv/bin/activate
script:
- west twister -T tests -p unit_testing
artifacts:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ After entering the project's directory, initialize a Zephyr workspace with:

```bash
./scripts/prepare_zephyr_env.sh
source .venv/bin/activate
```

This will:

* Download (if necessary) and set up Zephyr SDK
* Download necessary toolchains
* Set up Python virtual environment with necessary dependencies
* Configure all necessary variables.
* Set up Python virtual environment with necessary dependencies.

This can be reused to load all necessary environment before launching commands mentioned later in the README.md.

Expand Down

0 comments on commit a8c3699

Please sign in to comment.