Skip to content

Commit f3648ef

Browse files
committed
move scripts to separate dir
1 parent aff0a48 commit f3648ef

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
run: |
1414
cp -R addon servo_animation
1515
cp README.md LICENSE servo_animation
16-
blender --command extension build --source-dir addon --output-filepath blender_servo_animation_addon.zip
16+
./scripts/build.sh
1717
- name: Archive add-on ZIP
1818
uses: actions/upload-artifact@v4
1919
with:
@@ -57,10 +57,10 @@ jobs:
5757
name: blender_servo_animation_addon.zip
5858
- name: Install add-on
5959
run: |
60-
blender --command extension install-file -r user_default -e blender_servo_animation_addon.zip
60+
./scripts/install.sh
6161
- name: Install test dependencies inside Blender
6262
run: |
63-
./tests/prepare.sh
63+
./scripts/prepare.sh
6464
- name: Run tests inside Blender
6565
run: |
66-
./tests/test.sh
66+
./scripts/test.sh

scripts/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
blender --command extension build --source-dir addon --output-filepath blender_servo_animation_addon.zip

scripts/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
blender --command extension install-file -r user_default -e blender_servo_animation_addon.zip
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

3-
TESTSDIR=$(dirname "$0")
3+
PARENTDIR=$(dirname "$current_dir")
44

55
blender \
66
-noaudio \
77
--background \
88
--python-use-system-env \
99
--python-exit-code 1 \
10-
--python $TESTSDIR/prepare.py
10+
--python $PARENTDIR/tests/prepare.py
1111

1212
exit $?

tests/test.sh renamed to scripts/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
TESTSDIR=$(dirname "$0")
4-
TESTFILE="$TESTSDIR/results.txt"
3+
PARENTDIR=$(dirname "$current_dir")
4+
TESTFILE="$PARENTDIR/tests/results.txt"
55

66
blender \
77
-noaudio \

0 commit comments

Comments
 (0)