Skip to content

Commit

Permalink
Add verbosity and add totema shameless plugs
Browse files Browse the repository at this point in the history
  • Loading branch information
GabLeRoux committed Sep 14, 2018
1 parent 15fcdf6 commit 46211bf
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -156,6 +156,14 @@ path/to/unity -runTests -projectPath $(pwd) -testResults $(pwd)/editmode-results
path/to/unity -runTests -projectPath $(pwd) -testResults $(pwd)/playmode-results.xml -testPlatform playmode
```

## Shameless plug

I made this for free as a gift to the video game community so if this tool helped you, I would be very happy if you'd like to support me, support [Totema Studio](https://totemastudio.com) on Patreon: :beers:

[![Totema Studio Logo](./doc/totema-studio-logo-217.png)](https://patreon.com/totemastudio)

[![Become a Patron](./doc/become_a_patron_button.png)](https://www.patreon.com/bePatron?c=1073078)

## License

[MIT](LICENSE.md)[Gabriel Le Breton](https://gableroux.com)
4 changes: 4 additions & 0 deletions ci/before_script.sh
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

set -e
set -x
mkdir -p /root/.cache/unity3d
mkdir -p /root/.local/share/unity3d/Unity/
set +x
echo 'Writing $UNITY_LICENSE_CONTENT to license file /root/.local/share/unity3d/Unity/Unity_lic.ulf'
echo "$UNITY_LICENSE_CONTENT" | tr -d '\r' > /root/.local/share/unity3d/Unity/Unity_lic.ulf
16 changes: 16 additions & 0 deletions ci/build.sh
@@ -1,6 +1,10 @@
#!/usr/bin/env bash

set -e
set -x

echo "Building for $BUILD_TARGET"

export BUILD_PATH=./Builds/$BUILD_TARGET/
mkdir -p $BUILD_PATH

Expand All @@ -17,5 +21,17 @@ xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
-executeMethod BuildCommand.PerformBuild \
-logFile

UNITY_EXIT_CODE=$?

if [ $UNITY_EXIT_CODE -eq 0 ]; then
echo "Run succeeded, no failures occurred";
elif [ $UNITY_EXIT_CODE -eq 2 ]; then
echo "Run succeeded, some tests failed";
elif [ $UNITY_EXIT_CODE -eq 3 ]; then
echo "Run failure (other failure)";
else
echo "Unexpected exit code $UNITY_EXIT_CODE";
fi

ls -la $BUILD_PATH
[ -n "$(ls -A $BUILD_PATH)" ] # fail job if build folder is empty
2 changes: 2 additions & 0 deletions ci/test.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -x

xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
/opt/Unity/Editor/Unity \
-projectPath $(pwd) \
Expand Down
Binary file added doc/become_a_patron_button.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/totema-studio-logo-217.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 46211bf

Please sign in to comment.