From 5a1e7228fec064337415f173f8721def099701f6 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Fri, 6 May 2022 19:50:50 +0200 Subject: [PATCH] Refactor CI a bit --- .build-ci.sh | 13 +++++++++++++ .travis.yml | 9 +-------- 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100755 .build-ci.sh 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 -- libgit2 0.21.4