Skip to content

Commit

Permalink
Fix CI (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Mateo Miccino <[email protected]>
  • Loading branch information
Kinerius and Mateo Miccino authored Apr 20, 2023
1 parent 46a6c50 commit eae3aa0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
env:
UNITY_2021_ULF: ${{ secrets.UNITY_2021_ULF }}

- name: Run tests
run:
docker run \
-v $(pwd)/tmp/Unity:/root/.local/share/unity3d/Unity \
quay.io/decentraland/asset-bundle-converter@${{ steps.docker_build.outputs.digest }} \
./ci-editmode-test.sh

- name: Run test conversion of urn:decentraland:off-chain:base-avatars:brown_pants
run: |
docker run \
Expand All @@ -51,9 +58,6 @@ jobs:
--outDir /tmp-ab \
--logFile /tmp-ab/log.txt
- name: Run tests
run: chmod +x ./ci-editmode-test.sh && ./ci-editmode-test.sh

- name: Trigger deployment
id: deploy
uses: decentraland/dcl-deploy-action@main
Expand Down
9 changes: 0 additions & 9 deletions ci-editmode-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ source ci-setup.sh

echo "Running editmode tests for $PROJECT_PATH"

# Disable Sentry
disable_sentry

xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' $UNITY_PATH/Editor/Unity \
-batchmode \
-projectPath "$PROJECT_PATH" \
Expand All @@ -19,12 +16,6 @@ xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' $UNITY_PATH/Edito
# Catch exit code
UNITY_EXIT_CODE=$?

# Print unity log output
ls -la $PROJECT_PATH
find /tmp/workspace/unity-renderer -name editmode-results.xml
find $PROJECT_PATH -name editmode-results.xml
cat "$PROJECT_PATH/editmode-results.xml"

# Display results
if [ $UNITY_EXIT_CODE -eq 0 ]; then
echo "Run succeeded, no failures occurred";
Expand Down
6 changes: 0 additions & 6 deletions ci-setup.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#!/usr/bin/env bash

function disable_sentry()
{
# Disable Sentry
sed -i 's/<Enabled>k__BackingField: 1/<Enabled>k__BackingField: 0/' unity-renderer/Assets/Resources/Sentry/SentryOptions.asset
}

export PROJECT_PATH
PROJECT_PATH="$(pwd)/unity-renderer"

Expand Down
2 changes: 0 additions & 2 deletions convert-asset-bundles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ mkdir -p "$OUTPUT_DIR"
echo "Running AB converter for sceneId $SCENE_ID at $CONTENT_URL > $OUTPUT_DIR"
echo "Project path: $PROJECT_PATH"

disable_sentry

xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' "$UNITY_PATH/Editor/Unity" \
-batchmode \
-projectPath "$PROJECT_PATH" \
Expand Down

0 comments on commit eae3aa0

Please sign in to comment.