forked from ubisoft/mixer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled artifact zipping and uploading Simplified artifact naming in CI workflow Switched CI tests to Linux Updated CI workflow to run on Ubuntu Updated CI workflow to run tests Updated unit test script permissions and cleanup Updated paths for Blender and Python executables Updated CI workflow and test script The CI workflow now runs on Ubuntu 20.04 instead of the latest version. The unit test script has been simplified by removing the steps to download and unzip Blender, as we are now using the Blender installed in Ubuntu. This change also includes updating the path to the Blender executable accordingly. Refactor unittest script for cleaner error handling Simplified unit test script Updated Python version in CI workflow Updated CI workflow setup Updated Python3 installation command Update typed-ast version Removed 'typed-ast' from dev requirements Updated CI workflow to include Blender Updated CI workflow dependencies The CI workflow has been updated to install operating system dependencies. The change specifically targets the installation of Python3 and Blender. Repositioned OS dependencies installation Refactor CI workflow Updated unit test script path Updated unit test script path Updated unit test script for cross-platform compatibility The unit test script has been updated to support both MacOS and Linux. The changes include: - Checking the operating system before downloading Blender - Downloading and extracting the appropriate version of Blender based on the OS - Adjusted path setting for Blender executable depending on the OS - Added new Python packages for testing: unittest2 and xmlrunner Refactored script directory references Updated unit test script Updated CI environment and test dependencies Simplified unit test script Temporarily disable unit tests in CI
- Loading branch information
Showing
4 changed files
with
55 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Get the absolute path of the current script | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
# create local folders if required | ||
mkdir -p $SCRIPT_DIR/blender/cache | ||
|
||
# remove old blender install if it exists | ||
rm -rf $SCRIPT_DIR/blender/$MIXER_BLENDER_ZIP_BASENAME | ||
|
||
# create config folder to isolate blender from user environment | ||
mkdir -p $SCRIPT_DIR/blender/$MIXER_BLENDER_ZIP_BASENAME/$MIXER_BLENDER_VERSION_BASE/config | ||
|
||
# install Mixer in local blender | ||
blender --background --python $SCRIPT_DIR/install_mixer.py | ||
|
||
# These tests run within blender | ||
python3 -m pip install unittest-xml-reporting parameterized unittest2 xmlrunner --break-system-packages | ||
|
||
blender --background --python-exit-code 1 --python $SCRIPT_DIR/../mixer/blender_data/tests/ci.py | ||
|
||
# These tests launch 2 blender that communicate together | ||
python3 -m xmlrunner discover --verbose tests.vrtist -o $MIXER_TEST_OUTPUT | ||
python3 -m xmlrunner discover --verbose tests.broadcaster -o $MIXER_TEST_OUTPUT | ||
python3 -m xmlrunner discover --verbose tests.blender -o $MIXER_TEST_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters