From 285de106d45b47d50de678ad82bc3b36ebfd49a6 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sun, 6 Jan 2019 21:13:19 +0100 Subject: [PATCH] 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.. --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4c9274db9..b7183ede2 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);