summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/luv/.ci/platform.sh
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/luv/.ci/platform.sh')
-rw-r--r--3rdparty/luv/.ci/platform.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/3rdparty/luv/.ci/platform.sh b/3rdparty/luv/.ci/platform.sh
new file mode 100644
index 00000000000..7259a7d6369
--- /dev/null
+++ b/3rdparty/luv/.ci/platform.sh
@@ -0,0 +1,15 @@
+if [ -z "${PLATFORM:-}" ]; then
+ PLATFORM=$TRAVIS_OS_NAME;
+fi
+
+if [ "$PLATFORM" == "osx" ]; then
+ PLATFORM="macosx";
+fi
+
+if [ -z "$PLATFORM" ]; then
+ if [ "$(uname)" == "Linux" ]; then
+ PLATFORM="linux";
+ else
+ PLATFORM="macosx";
+ fi;
+fi