Commit 9bdabc48 authored by amtlib-dot-dll's avatar amtlib-dot-dll

Use Travis CI to test flatpak recipes

The recipe in this repo is pointed to the `next` branch; The recipe in https://github.com/flathub/org.remmina.Remmina/blob/master/org.remmina.Remmina.json is pointed to the latest tagged release
parent 2eccb7e8
......@@ -47,6 +47,7 @@ env:
- CMAKE_BUILD_OPTIONS='-DCMAKE_BUILD_TYPE=Release -DWITH_APPINDICATOR=on'
matrix:
- BUILD_TYPE=cmake
- BUILD_TYPE=flatpak
before_install:
......
FROM fedora:latest
RUN dnf install -yq flatpak flatpak-builder xz
RUN adduser -U -m user
USER user
WORKDIR /home/user
ADD --chown=user:user . .
RUN flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
CMD ["/bin/bash", "-xe", "flatpak.sh"]
#!/bin/sh
flatpak-builder --arch=x86_64 --user --install-deps-from=flathub --sandbox --repo=repo build *.json
flatpak-builder --arch=i386 --user --install-deps-from=flathub --sandbox --repo=repo build *.json
......@@ -477,8 +477,7 @@
{
"type": "git",
"url": "https://github.com/FreeRDP/Remmina.git",
"tag": "v1.2.0-rcgit.29",
"commit": "6b62986b44a47baa91cd637934092a8d3371c3b9"
"branch": "next"
}
]
}
......
......@@ -85,6 +85,15 @@ elif [ "$BUILD_TYPE" == "cmake" ]; then
cmake -B$BUILD_FOLDER -H. $CMAKE_BUILD_OPTIONS
make VERBOSE=1 -C $BUILD_FOLDER
fi
elif [ "$BUILD_TYPE" == "flatpak" ]; then
echo "TRAVIS_EVENT_TYPE=" $TRAVIS_EVENT_TYPE
if [ "$TRAVIS_BUILD_STEP" == "before_install" ]; then
sudo service docker start
elif [ "$TRAVIS_BUILD_STEP" == "install" ]; then
docker build -t flatpak ./flatpak
elif [ "$TRAVIS_BUILD_STEP" == "script" ]; then
docker run --privileged flatpak
fi
else
echo 'No $BUILD_TYPE defined'
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment