diff --git a/.build-ci.sh b/.build-ci.sh new file mode 100755 index 0000000..5dc02cb --- /dev/null +++ b/.build-ci.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e # If any step reports a problem consider the whole build a failure +wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage +sudo mv linuxdeploy-x86_64.AppImage /usr/local/bin +sudo chmod +x /usr/local/bin/linuxdeploy-x86_64.AppImage +sudo apt update +sudo apt install -y shellcheck +shellcheck debian/post* debian/pre* +./build.sh +./FlashMQBuildRelease/FlashMQ --version +sudo dpkg -i ./FlashMQBuildRelease/*.deb +set +e # Prevent Travis internals from breaking our build, see https://github.com/travis-ci/travis-ci/issues/891 diff --git a/.travis.yml b/.travis.yml index e4662b5..62a4297 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,11 +28,4 @@ jobs: compiler: clang script: -- set -e # If any step reports a problem consider the whole build a failure -- sudo apt update -- sudo apt install -y shellcheck -- shellcheck debian/post* debian/pre* -- ./build.sh -- ./FlashMQBuildRelease/FlashMQ --version -- sudo dpkg -i ./FlashMQBuildRelease/*.deb -- set +e # Prevent Travis internals from breaking our build, see https://github.com/travis-ci/travis-ci/issues/891 +- ./.build-ci.sh