Separate out testing from build script.

This commit is contained in:
daniel-123 2020-06-01 21:44:05 +02:00
parent 664b4159ea
commit c7dc9d6e89
3 changed files with 8 additions and 3 deletions

View File

@ -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}')"

View File

@ -0,0 +1,5 @@
#!/bin/sh
sudo apt install /tmp/syncplay.deb -y
syncplay --no-gui
sudo apt remove syncplay

View File

@ -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