Commit Graph

168 Commits

Author SHA1 Message Date
2d7b96c997 Add Ubuntu 2020-04 focal to the CI (#393) 2019-12-16 13:24:32 +01:00
d2e6b2a916 Remove scripts to compile android custom app. 2019-12-05 12:32:13 +01:00
a82d6430dc Remove support of kiwix-android and kiwix-custom-app. 2019-12-05 12:30:10 +01:00
00aced4649 Use fedora 30 to cross compile kiwix-tools. 2019-09-06 12:25:51 +02:00
3a8151d841 Compile kiwix-tools for windows with a recent mingw. 2019-09-05 14:32:54 +02:00
cf9bd7ae11 Add few trace in travis/compile_all.py 2019-09-04 18:55:20 +02:00
ab1ade53e3 Do not copy kiwix-build in docker at creation but mount it at run.
As we mount the kiwix-build (source) directory at run, the docker images
are independent of the source. This will greatly reduce the number of
docker images we have to create.
2019-09-04 17:10:44 +02:00
563bd28197 Set KIWIXLIB_BUILDVERSION to generate the pom with the correct version. 2019-09-04 11:15:08 +02:00
8288da5d20 Smaller xenial docker image 2019-09-04 11:06:37 +02:00
c2cbbccebb Smaller Docker base image 2019-09-04 10:00:15 +02:00
05be522ef4 Print response content in case we cannot upload artifact to bintray. 2019-08-22 14:32:18 +02:00
6bebdf89fc Use correct path to look for pom.xml 2019-08-22 11:02:32 +02:00
ecb3befd23 Fix copy of android archive for upload. 2019-08-21 17:56:57 +02:00
2e347b2b33 Do not generate the pom file in kiwix-build.
Now we generate the pom file in kiwix-lib side, we don't need to generate
it ourselves.
2019-08-21 14:27:24 +02:00
fc22437d84 Fix publication of kiwix-lib-app. 2019-08-05 16:33:29 +02:00
10448e5706 We have to correctly search for information to deploy.
- Define BINTRAY_ARCHIVES_DIR variable
- Correctly use find.
2019-07-30 16:33:47 +02:00
daf93f2e2f Build kiwix-lib-app in the CI and publish the release version. 2019-07-24 10:25:52 +02:00
327b08206b Do not build the android apk in the CI.
Android apk will be build on the android ci.
2019-06-27 17:36:26 +02:00
2e204a0abe Cache the flapak state dir to speed the build. 2019-06-26 17:17:48 +02:00
92679b72a0 Fix typos in deploy.sh 2019-06-14 11:40:41 +02:00
388ac6fdb9 Fix git clone
Clone using https (without ssh key) in the docker.
Push using git (with ssh key) in the travis host.
2019-06-12 13:55:06 +02:00
629fccb327 Fix deploy
- Also deploy when we have DESKTOP_ONLY (because docker image doesn't
deploy anymore)
- Correctly get the list of git directory to push.
2019-05-30 18:13:22 +02:00
27e92724e7 Fix deployement of git repositories.
The git repositories to upload are in the $EXPORT_DIR/GIT.
So we need to move there before try to push them.
2019-05-29 14:08:33 +02:00
def0163dfe Fix deployement of archive.
The user name in docker is `ci_builder` not `builder`.
2019-05-27 16:46:36 +02:00
6306a4d31b As appimage and flatpak use same ubuntu version, merge dockerfiles.
- Use the same structure than xenial dockerfile.
- Do not try to deploy in the docker image as the deployement is made on
  the host.
- Use user `ci_builder` instead of `builder` as it make flatpak fail.
2019-05-13 17:02:39 +02:00
5a0b7e0998 Move from artful to bionic.
EOL for artful is july 2018.
It seems that now, apt repository has been shutdown for artful.
It is time to move to a more recent ubuntu version.

Bionic is the oldest release for which QtWebEngine has been packaged.
2019-05-07 13:36:57 +02:00
e031eced7c Fix deployment of release and nightly.
Docker image need to copy archive to deploy in the correct directory.
2019-05-06 14:34:25 +02:00
39d05d1b03 Do not build the base archive for android platform.
We already have a base archive per android_<arch> platform.
We don't need to create another archive that will mainly include the
content of the other archives.
2019-05-03 10:44:19 +02:00
19ac17a637 Build the docker images in a separated stage.
Images are push to kiwix/kiwix-build_ci
2019-05-03 10:43:50 +02:00
281adbd768 Build everything in a container.
Docker containers don't have the SSH_KEY so we need to copy
archives and git repo in a directory on the host and
launch deploy.sh script from there.
2019-05-02 17:44:56 +02:00
f9d5e0aa21 Use an already made archive for the armhf toolchains instead of git clone.
First, we don't need to clone all the git repository, we only need a
sub-directory.
Secondly, as we the base_deps archives only archive the sub-directory,
subsequent run of kiwix-build in the ci will try to do a git update on
a non git repository.

By making ourselves a tar archive, we simplify the process.

The archive on download.kiwix.org has been made with :
`tar czf raspberrypy-tools.tar.gz raspberrypi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64`
`raspberrypi-tools` being a clone of `https://github.com/raspberrypi/tools`
commit sha is 5caa7046982f0539cf5380f94da04b31129ed521
2019-05-02 17:43:11 +02:00
23a26ff8fc Fix creation of win32 archives.
The win platform starts with `win32_`, not `win-`.
2019-04-01 18:03:41 +02:00
5a3ccd287f Look for the correct SSH_KEY in the docker environment. 2019-03-19 17:18:17 +01:00
74210ece52 Update flathub repository.
Push new flathub manifest and patches at each new release.
2019-03-19 15:25:11 +01:00
6200239bba Correctly use TRAVIS_BUILD_DIR in docker.
TRAVIS_BUILD_DIR is the directory of kiwix-build.
So we must correctly set it in docker as the directory is not the
same.
We don't need the TRAVISCI_SSH_KEY now as we are looking in the right
directory.
2019-03-19 15:25:11 +01:00
3b91babe2f Use a new constant variable KBUILD_SOURCE_DIR 2019-03-19 15:25:11 +01:00
b4d0e627c5 Add armhf toolschain in base_deps_archive. 2019-03-06 10:24:09 +01:00
e04dd76ee0 Use specific release base deps archive when build release.
Base deps are not compiled the same between a release and debug build.
2019-03-06 10:14:02 +01:00
c2bb79941a Update to last version of linuxdeployqt.
linuxdeployqt now try to get the version of the appimage and include it
in the appimage name.

Let's specify the version and use the correct (new) appimage name.
2019-02-22 10:57:08 +01:00
40b8bd0d19 Include subdirectory in the libzim release archive.
Header are in the `include/zim` directory but also in `include/zim/creator`
2019-02-22 10:43:46 +01:00
03c2c26089 Add LOGS dir to the dependencies archives.
This will help to debug.
2019-02-19 17:23:14 +01:00
5a404438f7 Fix creation of deps archive. 2019-02-18 15:17:34 +01:00
f3ba9346ac Also create the archive in PR.
This way we are testing that archives are well done in the PR, not
after the merge.
2019-02-18 11:29:42 +01:00
4230ece400 Better of export of file (release and nightly)
As we are exporting libzim, we also need to export header files.
So now, we are using glob to get the list of file to add to the archive.

Fix openzim/libzim#199
2019-02-18 10:29:38 +01:00
77fc6704ef Do not save the tools directory of the toolchains.
This directory came from the source and is only used to install the
sdk. As the sdk is already installed, we don't need it (and we can save
400Mo)
2019-02-06 16:51:42 +01:00
ffc9c1b640 [TRAVIS] Use xz compression to create the deps archives. 2019-02-06 15:28:25 +01:00
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
6fd7d77ff1 [TRAVIS] Print progress while we are downloading base_dep archives. 2019-02-05 19:01:32 +01:00
68902b5642 Build libzim in native_mixed platform on travis. 2019-02-04 17:01:28 +01:00
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