Commit Graph

123 Commits

Author SHA1 Message Date
Matthieu Gautier ffc9c1b640 [TRAVIS] Use xz compression to create the deps archives. 2019-02-06 15:28:25 +01:00
Matthieu Gautier fa3343dd97 We need to deploy the real lib, not the symlink to it.
`libzim.so` is a symlink to `libzim.so.4`, who is also a symlink to
`libzim.so.4.0.4`.
2019-02-06 10:24:22 +01:00
Matthieu Gautier 6fd7d77ff1 [TRAVIS] Print progress while we are downloading base_dep archives. 2019-02-05 19:01:32 +01:00
Matthieu Gautier 68902b5642 Build libzim in native_mixed platform on travis. 2019-02-04 17:01:28 +01:00
Matthieu Gautier 681c5b4ec2 [Travis] Use python3.5 instead of default python3.4
Python3.5 add functionnality we need in kiwix-build.
And recent versions of meson need python3.5.
2019-01-17 15:36:32 +01:00
Matthieu Gautier 8005aff6c0 Remove ctpp2 dependency.
kiwix-lib doesn't use ctpp2 anymore but mustache.
So remove ctpp2 dependency and add mustache.
2019-01-09 11:17:41 +01:00
Matthieu Gautier 2980075ce0 Update flatpak_builder to new version of kiwix-desktop
- app-id is now ork.kiwix.desktop
- No need to rename the desktop-file
- `--filesystem=xdg-data` is useless.
2018-12-14 17:00:39 +01:00
Matthieu Gautier c0daff60bd Include zimcheck in the zim-tools archives
Fix openzim/zim-tools#26
2018-12-03 11:19:36 +01:00
Matthieu Gautier 92d637ad99 Better flatpak build.
- Print the name of the module instead of the builder.
- Do not try to build the kiwix-desktop dependencies in the flatpak.
- Correct the path of the created flatpak.
2018-11-30 11:37:23 +01:00
Matthieu Gautier 827c963895 Update upload script to new server user "ci".
On new server, the user `nightlybot` as been renamed to `ci`.
The path of the data used by the download server has also changed.
2018-11-30 11:08:33 +01:00
Matthieu Gautier f41a0dccdb Get base dependencies only if we are not building a flatpak. 2018-11-27 17:22:47 +01:00
Matthieu Gautier ecf3b8b1ff Add an option `--asume-packages-installed` to not try to install packages.
This is different than `--dont-install-packages` that will try to
compile the dependencies.

`--asumme-packages-installed` will no try to install packages, but will
not try either to compile dependencies.
2018-11-27 17:22:47 +01:00
Matthieu Gautier 086361b432 Build the flatpak in travis.
Use docker to have the last version of ubuntu (and flatpak)
2018-11-27 17:22:47 +01:00
Matthieu Gautier ed63ffe24c Add aria2 dependency.
kiwix-desktop needs the aria2 binary to download content.
kiwix-desktop will use aria2 throw lib-kiwix so it is somehow a kiwix-lib
dependency, but it is used only by kiwix-desktop.

And we know to install it only on platforms where we are supporting
kiwix-destkop.
2018-11-27 17:22:47 +01:00
Kelson 70301d4723 New tmp.kiwix.org server 2018-11-07 03:51:13 +01:00
Kelson d9ef792172 Update Travis for new download server 2018-11-03 14:38:46 +01:00
Matthieu Gautier 0600be96ac Force the build of libcurl instead of using system one.
On ubuntu, the libcurl package is compiled with libkrb (kerberos).
However, no libkrb5.a is provided and so, we cannot link statically.

As we are not using kerberos, we can (and must) compile ourselves libcurl.
2018-10-31 15:33:12 +01:00
Matthieu Gautier 1e67a6b50f Add libcurl dependency.
This is needed for new kiwix-lib version.
We also remove libaria as kiwix-lib use aria2 binary directly.
2018-10-23 11:57:58 +02:00
Matthieu Gautier b3a3d0399f Last version of travis osx already have a python 3.6 installed. 2018-10-23 11:57:58 +02:00
Matthieu Gautier ecc6927de8 Use git archive to create dist source archive.
qmake seems to generate wrong "dist" rules for "make".
It try to copy the translation files as if it was in current directory
instead of looking the source dir.

dist archive is usefull with autotools where we want to run autogen before.
Or with meson when meson run tests before making the archive.

With qmake, it seems useless, let's simply archive what is git.
2018-09-05 19:38:58 +02:00
Matthieu Gautier df0b684869 Correctly find the version of a dependency.
We have separated the version in two separated dicts since a long time :/
2018-09-05 19:31:38 +02:00
Matthieu Gautier 07e8b36efb Do not overwrite release build archives.
We new release of a project is made, projects dependending of it are
rebuild and republish to keep the binaries up-to-date.

To avoid overwrite the already build archives and silent the fact that
new archives are available, we need to have a extra build version.

`release_versions[project]` has to be set each time a dependency of
`project` is bump but the project version has not changed.

If the `project` version changes, the `release_versions[project]`
has to be cleared.

If we don't want to release this version again, remove project from
`release_versions`.

See kiwix/kiwix-tools#222
2018-09-04 17:56:01 +02:00
Matthieu Gautier b16213b1c0 Use the ZIP_DEFLATED compression when creating zip archive.
The building Windows zip decompressor handles only DEFLATED.
2018-08-28 14:56:56 +02:00
Matthieu Gautier 22a580d070 Fix the src path of kiwix-desktop when doing release.
kiwix-build add `_release` postfix, not the version number.
2018-08-06 10:49:53 +02:00
Matthieu Gautier cad38f8a53 Use the correct source path of kiwix-desktop when doing release. 2018-08-06 09:24:29 +02:00
Matthieu Gautier f51204d424 [Travis] Also build kiwix-desktop when building for release. 2018-08-04 09:06:38 +02:00
Matthieu Gautier c256857e01 Create the app image using the ".appimage" extension.
Fix kiwix/kiwix-desktop#19
2018-08-03 15:53:13 +02:00
Matthieu Gautier afc6bf0907 Add svg icon support into the appimage
- Add missing packages in Dockerfile to support svg icons.
- Include needed plugins in the appimage.
2018-08-03 15:53:13 +02:00
Matthieu Gautier 0d3ea8eaa5 Use the kiwix.desktop file and the icon in the kiwix-desktop sources.
No need anymore to generate one or take a random image.
2018-08-03 15:52:50 +02:00
Matthieu Gautier 25af2cfa6c [TRAVIS] Do not make a deps archive when PLATFORM is android.
We never use the android platform in other project. We always an arch
specific android platform (android_arm).

So, do not try to do any dependencies archives there.
Especially if travis kill the job because it takes too long to create
the archive.
2018-07-16 18:31:50 +02:00
Matthieu Gautier 56d897d8d8 [TRAVIS] Allways use $HOME as relative path in dependencies archives.
As we now move to multi-arch build, we may have things compiled natively
or "neutral" (as toolchains). So we cannot use the BASE_DIR as
relative_path because BASE_DIR is arch dependent.
2018-07-16 09:42:46 +02:00
Matthieu Gautier bae484f7ae [TRAVIS] Print a '.' every 50 files added to an archive.
It will avoid travis-ci to kill the job because of the absence of output.
2018-07-13 11:51:00 +02:00
Matthieu Gautier 7391b54edf [TRAVIS] Try to use arch specific base_deps when build android multi arch.
Compiling all dependencies for all archs takes a too long time for travis.
By downloading the cache of specific android arch, we avoid to recompile
them.

Android will need kiwix-lib builder to build, so we cannot make the
target_only.
2018-07-13 10:39:18 +02:00
Matthieu Gautier cd0d075def Do not try to decrypt the ssh_key if we cannot.
If we are building a PR comming from a fork, the secret key will not
be available and we cannot decrypt the ssh key.

And if the ssh key cannot be decrypted, we should not try to use it to
upload base dependencies.

`cron` and deployement are made only on "secured environment" so we don't
need to test for existance of the key because we are sure that we have
been able to decrypt it.
2018-07-11 15:55:11 +02:00
Matthieu Gautier d5b81294ca [TRAVIS] Fix release dist.
- Correctly make dist.
- zimwriterfs is now using meson, we don't need a special case.
2018-06-19 10:39:07 +02:00
Matthieu Gautier 37e2b709f8 [TRAVIS] Use target_only only if we are building in a cron.
The deps will be build only if we are in a cron.
In this case, we can directly build only the target.

But in other case, we have to build the target and its dependencies.
2018-06-18 17:54:44 +02:00
Matthieu Gautier c9c7d86ca8 Do not try to compile kiwix-desktop on travis trusty 2018-06-15 16:39:14 +02:00
Matthieu Gautier 37ebcf83ae Use Docker to build kiwix-desktop only.
Keep default travis env for everything else.
2018-06-15 15:57:57 +02:00
Matthieu Gautier 9ad07fe550 Travis, do not try to compile deps if not needed. 2018-06-14 18:18:46 +02:00
Matthieu Gautier d74cd1d50a Do not try to compile kiwix-desktop on native_static.
QtWebEngine is not compatible with static compilation so we should not
try to compile kiwix-desktop on native_static.
2018-06-13 17:39:06 +02:00
Matthieu Gautier 269e2b39a6 Build the kiwix-desktop app image in Travis. 2018-06-12 16:31:57 +02:00
Matthieu Gautier 8c3a8be65d Build kiwix-desktop in travis. 2018-06-12 16:29:00 +02:00
Matthieu Gautier ded38889cf Use docker to build native_dyn.
As we want to use qt and packages are available only since ubuntu artful, we
need to use docker because travis-ci is ubuntu trusty.

We could also build qt, but it takes too many time and travis timeout.
2018-06-11 16:50:44 +02:00
Matthieu Gautier 4dea44d305 Fix travis CI 2018-06-08 10:29:26 +02:00
Matthieu Gautier fa829e1dec Rename dependency_versions.py to versions.py 2018-05-22 16:39:55 +02:00
Matthieu Gautier 355ef551d3 Last version of kiwix-tools doesn't have a kiwix-install binary.
See commit https://github.com/kiwix/kiwix-tools/commit/7c254544
2018-05-21 14:51:05 +02:00
Matthieu Gautier e6c5624127 Create "date" directory when deploying nightly build.
The directory is create by simply copying the full directory instead of
individual files.
2018-05-14 22:10:40 +02:00
Matthieu Gautier dac4fcd1f8 Also try to cross-compile zim-tools in travis cron. 2018-05-14 15:46:57 +02:00
Matthieu Gautier b4f8d2cc7b Build kiwix-lib for iOS on travis CI. 2018-04-24 15:02:28 +02:00
Matthieu Gautier 58c5d6d02e Better printing of messages in the travis log. 2018-04-23 16:36:10 +02:00