X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=.travis.sh;fp=.travis.sh;h=6b69c638ac94fc639c842137de4d59f1f2899e64;hb=f782e931b0c51836ffae8a47618e6c2263607555;hp=0000000000000000000000000000000000000000;hpb=5121ae07c4a58887dcf940c107a4f45422ffd092;p=fw%2Fstlink diff --git a/.travis.sh b/.travis.sh new file mode 100755 index 0000000..6b69c63 --- /dev/null +++ b/.travis.sh @@ -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