2016-04-07 08:01:20 +00:00
|
|
|
#!/bin/bash
|
2016-05-20 18:49:29 +00:00
|
|
|
echo "-- C compilers available"
|
|
|
|
ls -1 /usr/bin/gcc*
|
|
|
|
ls -1 /usr/bin/clang*
|
|
|
|
ls -1 /usr/bin/scan-build*
|
|
|
|
echo "----"
|
|
|
|
|
2016-06-18 14:19:09 +00:00
|
|
|
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
2016-04-07 08:01:20 +00:00
|
|
|
sudo apt-get update -qq || true
|
2017-03-24 22:11:09 +00:00
|
|
|
sudo apt-get install -qq -y --no-install-recommends libgtk-3-dev
|
2020-02-24 22:11:51 +00:00
|
|
|
else #("$TRAVIS_OS_NAME" == "osx")
|
2016-04-07 08:01:20 +00:00
|
|
|
brew install libusb
|
|
|
|
fi
|
|
|
|
|
2016-06-18 14:19:09 +00:00
|
|
|
echo "=== Building Debug"
|
2016-09-15 20:29:59 +00:00
|
|
|
mkdir -p build/Debug && cd build/Debug && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$PWD/_install ../../ && make && make package && cd -
|
2016-06-18 14:19:09 +00:00
|
|
|
|
|
|
|
echo "=== Building Release"
|
2016-09-15 20:29:59 +00:00
|
|
|
mkdir -p build/Release && cd build/Release && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/_install ../../ && make && make package && cd -
|