diff options
-rw-r--r-- | .travis.yml | 14 | ||||
-rwxr-xr-x | flatpak/flatpak-build.sh | 2 |
2 files changed, 13 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index d41e7eea0..794604ddb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,8 +32,15 @@ # sudo: required + language: generic -cache: ccache + +cache: + ccache: true + directories: + - .cache + # This should be not needed. Remove if .cache is correcthly used. + - .flatpak-builder/ group: edge @@ -51,6 +58,8 @@ env: - BUILD_TYPE=flatpak FLATPAK_ARCH=x86_64 - BUILD_TYPE=flatpak FLATPAK_ARCH=i386 +before_cache: + - tar --xattrs --xattrs-include=* -cpf .cache/cache.tar .flatpak-builder/ before_install: - scripts/travis-build.sh before_install @@ -59,12 +68,13 @@ install: - scripts/travis-build.sh install script: + - "mkdir -p ~/.ccache/ && touch ~/.ccache/ccache.conf" + - "tar --xattrs --xattrs-include=* -xf .cache/cache.tar || true" - scripts/travis-build.sh script after_success: - scripts/travis-build.sh after_success - notifications: email: - antenore@simbiosi.org diff --git a/flatpak/flatpak-build.sh b/flatpak/flatpak-build.sh index 1f6fa2c7d..36c170efc 100755 --- a/flatpak/flatpak-build.sh +++ b/flatpak/flatpak-build.sh @@ -21,7 +21,7 @@ flatpak_builder \ --force-clean \ --install-deps-from=flathub \ --stop-at=remmina \ - app/ org.remmina.Remmina.json + app/ org.remmina.Remmina.json --ccache # Build Remmina module from local checkout mkdir -p _flatpak_build |