aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)Author
2018-09-28Revert "QML UI: newer Kirigami and fallout"Gravatar Dirk Hohndel
Turns out that Jan found an issue with the latest Kirigami, so let's go back to the known good one. This reverts commit 17ec95e70c3ae58d505b8c3cbbaf6815186b93cb. Suggested-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-28Revert "build-system: fix kirigami.pri for iOS build"Gravatar Dirk Hohndel
Turns out that Jan found an issue with the latest Kirigami, so let's go back to the known good one. This reverts commit 40766db459b219ef6a9b861593ac6e7b71519ec6. Suggested-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-27build-system: fix kirigami.pri for iOS buildGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-27QML UI: newer Kirigami and falloutGravatar Jan Mulder
Update to the master of today, and no issues detected on mobile-on-desktop and Android. Only, the ugly border is back as the magic hack of 0b16b547ae2aefb1 failed due to the patch file that errored. So that is fixed too. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2018-09-20build-system: fix appdata creation on OBSGravatar Dirk Hohndel
Build systems that run from tar balls and not git fail to create valid .appdata.xml This solves the problem for tar balls that we create for OBS via our own make-package script. It doesn't solve the problem for Arch or Gentoo who I believe take our tar files created via git archive. One way to fix this would be to change the process by which I create those tar files, I guess. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15build-system: don't modify a file under git controlGravatar Dirk Hohndel
Instead of editing appdata/subsurface.appdata.xml in place, switch to our usual pattern of modifying a .in file and add the resulting file to .gitignore. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-13Mac: hard code macosx-version-min as 10.11, regardless of available SDKsGravatar Dirk Hohndel
This should never be wrong, and should avoid the warnings on Travis. Fixes #1654 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-09Travis: build export-html on Mac and LinuxGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-09Fix appdataGravatar Alexander Wilms
Use correct format, create script to update the version and release date in the appdata. [Dirk Hohndel: call said script during the build process] Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-05Travis: use system libgit2 on OpenSUSE for Qt56 buildGravatar Dirk Hohndel
This is libgit2 0.24 which is new enough for our purposes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-05build-system: don't show spurious errors looking for qmakeGravatar Dirk Hohndel
And improve the message if we do indeed not find it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-05Travis: fix qt56 buildsGravatar Dirk Hohndel
This seems very strange - but it appears that we are missing the 'which' command. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-08-31Travis: show performance test resultsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-08-31Travis: put large test data in place for TestParsePerformanceGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-08-05Android: build latest libzipGravatar Dirk Hohndel
Small hacks needed, but otherwise this seems to work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-08-04Android: build libzip 1.1.3Gravatar Dirk Hohndel
Switching to GitHub as source for libzip means that we need to encode the version number differently. Newer versions of libzip don't compile cleanly on Android and this one seems new enough. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-08-04build-system: update libzip to 1.5.1Gravatar Dirk Hohndel
This also switches us to libzip's new official home on GitHub, and takes into account that libzip no longer supports autotools and instead now is cmake based. Building against that, on my Mac build system, Subsurface once again correctly opens DLD files downloaded from divelogs.de. Fixes #1534 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-26Small edit of whitespace scriptGravatar Dirk Hohndel
This makes sure we don't end up indenting macro invocations. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-21Fetch sqlite from https:// siteGravatar Berthold Stoeger
The http:// version is down an makes Travis fail. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-12Add comment to get-dep-lib.shGravatar Jocke
Add a comment so we remember to change the version number in versions.sh also. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-11Travis: add Qt 5.9 testingGravatar Dirk Hohndel
This is done via Fedora 27 which seemed the easiest way to get a 5.9 based distro. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-11Travis: add Qt 5.7 testingGravatar Dirk Hohndel
This is done via Fedora 26 which seemed the easiest way to get a 5.7 based distro. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-10Travis: add Qt 5.6 testingGravatar Dirk Hohndel
This is done via OpenSUSE Leap/42.3 which seemed the easiest way to get a 5.6 based distro. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: build iOS against Qt 5.11.1Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: build macOS against Qt 5.11.1Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: install from Homebrew instead of using a cacheGravatar Dirk Hohndel
Clearly something has changed here. When I first tried to use Homebrew on Travis the update would take often so long that the build would time out. Now it is nice and fast. So instead of wasting time with the cache let's just use Homebrew directly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09build.sh: provide usage message and exit on unknown argGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09build-system: allow selection of Debug or Release buildGravatar Dirk Hohndel
So far we did a rather odd mix by default. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-07build-system/macOS: don't get libgit2 from pkgconfig when building it ourselvesGravatar Dirk Hohndel
Doing that confuses the build setup and as a result the library isn't found at runtime without some fixups. Fixes #1469 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-07build-system/macOS: fix up the id of libssh2 as wellGravatar Dirk Hohndel
For some reason we only tried to fix libgit2 but not the libssh2 that it depend on. Weird. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-07build-system/macOS: correctly test if we need to adjust the id of libgit2Gravatar Dirk Hohndel
The existing test was backwards and never worked. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-03build-system: tell Travis to wait longer for downloadsGravatar Dirk Hohndel
But simply ignore when building outside of Travis. Of course since we are building Android in a container, we need to first pass the environment variable to the container... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-03build-system: add travis_wait shell functionsGravatar Dirk Hohndel
These come originally from https://github.com/travis-ci/travis-build and are available when running on Travis, but not when running inside a Docker container on Travis as we do in order to build for Android. The goal is to provide a quasi heart-beat on STDOUT during very long running commands - without this the wget to download Qt often times out, so that's where we are going to use this. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-06-25tools: keep the log of translation extractionGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-06-22build-system: Use the correct library name, libftdi1Gravatar Anton Lundin
The library name is actually libftdi1 , not libftdi. Signed-off-by: Anton Lundin <glance@acc.umu.se>
2018-06-22build-system: Use a list instead of string + regexpGravatar Anton Lundin
There are actually more datatypes in bash than just strings. One can for example hold a list of strings in a list, and use that to keep track of what we're expected to do. Signed-off-by: Anton Lundin <glance@acc.umu.se>
2018-06-22build-system: Don't fail if tarball is there but no dirGravatar Anton Lundin
The previous code assumed everything was good to go if just the tar ball was there, but if it wasn't unpacked, it all went sideways. This makes it more robust and to actually handle that the tarball might just be there. Signed-off-by: Anton Lundin <glance@acc.umu.se>
2018-06-22build-system: Cleanup script with shellcheckGravatar Anton Lundin
Signed-off-by: Anton Lundin <glance@acc.umu.se>
2018-06-18Travis: build mobile on Linux with newer gccGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-06-18build-system: add another Kirigami hackGravatar Dirk Hohndel
We want to be able to roll our own banner image, logo, title, and other information in the GlobalDrawer - but Kirigami adds an ugly margin around that. This attempts to remove that margin (but for some reason there is still a margin on the left side). This requires the patch command to be installed, but because of the context sensitivity of the changes, I couldn't figure out how to do this with sed or perl (which we already require). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-06-18QML UI: update to newer KirigamiGravatar Dirk Hohndel
This seems equally stable to what we have and doesn't appear to introduce any new breakage. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-06-17build-system: use common code to download tarballsGravatar Murillo Bernardes
Signed-off-by: Murillo Bernardes <mfbernardes@gmail.com>
2018-06-17build-system: avoid checkout when unneededGravatar Murillo Bernardes
Checkout only if current checked out version differs from expected. Signed-off-by: Murillo Bernardes <mfbernardes@gmail.com>
2018-06-17build-system: add function to checkout from gitGravatar Murillo Bernardes
git clone/checkout code was mostly the same copied over and over. Move code to a single common function Signed-off-by: Murillo Bernardes <mfbernardes@gmail.com>
2018-06-09build-system: download libzip from our own serverGravatar Dirk Hohndel
The libzip.org server often times out and causes build failures. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-05-25build-system: added missing .git in get-dep-lib.shGravatar jan Iversen
For unknown reasons cloning from github is slower to start if .git is omitted. Add .git to all "git clone" statements Signed-off-by: Jan Iversen <jani@apache.org>
2018-05-25build-system: update get-dep-lib to not check double on iOSGravatar jan Iversen
Only mobilecomponents.sh download breeze-icons and kirigami. This patch is merely to avoid confusion. Before get-dep-lib in ios/download would download those, and mobilecomponents would see that they were already downloaded. Signed-off-by: Jan Iversen <jani@apache.org>
2018-05-24build-system: integrate get-dep-lib in mobilecomponentsGravatar jan Iversen
use get-dep-lib in mobilecomponents to do git clone of kirigami and breeze-icons. Remove -no-pull option Signed-off-by: Jan Iversen <jani@apache.org>
2018-05-24build-system: get-dep-lib add support for kirigami and breeze-iconsGravatar jan Iversen
mobilecomponents.sh do git clone of kirigami and breeze-icons. should be centralized with get-dep-lib Signed-off-by: Jan Iversen <jani@apache.org>
2018-05-20Travis: don't fail Linux build when .zsync is missingGravatar Dirk Hohndel
It seems that sometimes the AppImage tooling gets confused and doesn't create a .zsync file. That should cause Travis to fail. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>