aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2019-01-06 21:13:19 +0100
committerAhmad Fatoum <ahmad@a3f.at>2019-01-06 23:09:20 +0100
commit285de106d45b47d50de678ad82bc3b36ebfd49a6 (patch)
tree3c3039007f43407b3f69c2b12d3ea3171790bdb1
parent85a2cda36dc528feae38e718683825e5ae56f8d8 (diff)
downloadraylib-285de106d45b47d50de678ad82bc3b36ebfd49a6.tar.gz
raylib-285de106d45b47d50de678ad82bc3b36ebfd49a6.zip
Travis CI: emscripten: properly fix failing CMake install stage
The .travis.yml is getting increasingly ugly. We should maybe consider creating separate shell scripts for each target..
-rw-r--r--.travis.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 4c9274db..b7183ede 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -132,7 +132,11 @@ script:
..
- $RUNNER cmake --build . --target
- if [ "$RELEASE" != "NO" ]; then $RUNNER cmake --build . --target package; fi
- - $(which sudo) $RUNNER "$(which cmake)" --build . --target install
+ - if [ -n "$RUNNER" ]; then
+ sudo $RUNNER cmake --build . --target install;
+ else
+ $(which sudo) $RUNNER "$(which cmake)" --build . --target install;
+ fi
- if [ ! "$DONT_TEST" ]; then
pkg-config --static --libs raylib;
nm -g release/libraylib.a | grep glfwGetProcAddress || (echo "libraylib.a doesn't contain GLFW symbols! Aborting..." && false);