Merge tag '1.2.0' into debian
[fw/stlink] / .travis.sh
diff --git a/.travis.sh b/.travis.sh
new file mode 100755 (executable)
index 0000000..6b69c63
--- /dev/null
@@ -0,0 +1,18 @@
+#!/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
+else
+       brew install libusb
+fi
+
+if [ "$BUILD_SYSTEM" == "cmake" ]; then
+       mkdir build
+       cd build
+       cmake ..
+       make
+else
+       ./autogen.sh
+       ./configure
+       make
+fi