From c7dc9d6e89d56d812083fb9bc50f7ebbc78082c6 Mon Sep 17 00:00:00 2001 From: daniel-123 Date: Mon, 1 Jun 2020 21:44:05 +0200 Subject: [PATCH] Separate out testing from build script. --- .travis.yml | 3 +++ travis/deb-installation-test.sh | 5 +++++ travis/deb-script.sh | 3 --- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 travis/deb-installation-test.sh diff --git a/.travis.yml b/.travis.yml index 8b7cc93..98a03bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,9 @@ install: - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "snapcraft" ]; then travis/snapcraft-install.sh ; fi - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "appimage" ]; then sudo apt-get install libxkbcommon-x11-0 ; fi +after_success: +- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "deb" ]; then travis/deb-installation-test.sh ; fi + before_deploy: - ls -al - export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')" diff --git a/travis/deb-installation-test.sh b/travis/deb-installation-test.sh new file mode 100644 index 0000000..a14253d --- /dev/null +++ b/travis/deb-installation-test.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +sudo apt install /tmp/syncplay.deb -y +syncplay --no-gui +sudo apt remove syncplay diff --git a/travis/deb-script.sh b/travis/deb-script.sh index e6574ac..8853d82 100755 --- a/travis/deb-script.sh +++ b/travis/deb-script.sh @@ -25,6 +25,3 @@ chmod 555 /tmp/syncplay/DEBIAN/prerm make install DESTDIR=/tmp/syncplay dpkg -b /tmp/syncplay/ -sudo apt install /tmp/syncplay.deb -y -syncplay --no-gui -sudo apt remove syncplay