Merge pull request #416 from texane/stlink_gui_fix_warning_overflow
[fw/stlink] / .travis.sh
index cefeed142704b2ab020d5830e6abe82876f0687e..13d2c1dcdbc4e8ae08ec0c43496d55f8554d9052 100755 (executable)
@@ -1,12 +1,22 @@
 #!/bin/bash
 if [ "$TRAVIS_OS_NAME" != "osx" ]; then
        sudo apt-get update -qq || true
-       sudo apt-get install -qq -y --no-install-recommends libusb-1.0.0-dev
+       sudo apt-get install -qq -y --no-install-recommends libusb-1.0.0-dev libgtk-3-dev
 else
        brew install libusb
 fi
 
-mkdir build
-cd build
-cmake ..
-make
+if [ "$BUILD_SYSTEM" == "cmake" ]; then
+       mkdir build
+       cd build
+       cmake ..
+       make
+else
+       ./autogen.sh
+       if [ "$TRAVIS_OS_NAME" == "osx" ]; then
+               ./configure
+       else
+               ./configure --with-gtk-gui
+       fi
+       make
+fi