Commit Graph

63 Commits

Author SHA1 Message Date
2a03ddb2f7 Add a top dir in the tgz archives. 2018-03-21 14:01:30 +01:00
87eee8e966 create zip archive for win32 binaries 2018-03-21 14:01:30 +01:00
b9abfa712d Deploy dist archive in project subdirectory (as for compiled binaries). 2018-03-21 12:14:58 +01:00
8d13ad5de7 Do not store archive is the base dep archive.
Now that we use a skip file to skip download, we don't need to store
all the archives but just the skip file.
2018-03-20 17:57:39 +01:00
752a5d58ce Do not do sudo command.
- Install all packages using travis apt plugin
- Copy ninja binary in $HOME/bin.

We still need sudo required because travis image has more memory in this
case and this is needed to test big cluster in libzim.
2018-03-20 16:05:26 +01:00
a7f1da3561 Upload build log on failure. 2018-03-20 16:03:09 +01:00
c54439831d Use already compiled ninja binary instead of building one. 2018-03-20 15:14:32 +01:00
d93fc9dc9c Also cache pip in travis. 2018-03-20 15:14:32 +01:00
4f2cc6bf92 Make travis compile and store all compiled version of the base deps.
This should greatly improve travis speed.
2018-03-20 09:38:24 +01:00
6cc4c43ffa scp convert its arguments to str itself. 2018-03-19 18:23:12 +01:00
df51246753 Move creation of dependencies archive into a separated function. 2018-03-19 18:22:30 +01:00
f1c15a5d3d Reuse the versions in dependency_versions.py instead of redefine them. 2018-03-19 17:25:09 +01:00
841949777d Do not fail if we try to create an existing directory. 2018-03-19 12:09:14 +01:00
0594486afd Fix deployment of different release archives.
Fix #12.
2018-03-15 17:42:15 +01:00
87d80928ee Simplify a bit usage of make_archive. 2018-03-15 17:06:13 +01:00
579109ab79 make_archive now takes different arguments to compute the archive name. 2018-03-15 16:55:19 +01:00
3180b5f761 Merge branch 'master' into fix_archive_typo 2018-02-26 20:27:14 +01:00
d7dd02e922 Do not try to deploy android apks if we are not building them. 2018-02-26 11:36:55 +01:00
6f6ffa5f87 Fix typos. 2018-02-26 11:31:12 +01:00
ea54c56529 Fix small typos in the armhf name.
Fix kiwix/kiwix-tools#157
2018-02-26 11:12:05 +01:00
f6c3083505 Do not try to compile kiwix-android if we make a release.
kiwix-android is following its own release process and tagging policy.
Will should fix this in the future but trying to compile kiwix-android
master branch may fail with tagged version of kiwix-lib.
2018-02-23 14:50:48 +01:00
5ffa9ca323 Fixes typos and add download.openzim.org to known hosts. 2018-02-23 14:49:15 +01:00
3b12557df8 Files in the deps archive must not be absolute path.
The archives will be extracted in the right directory. We need to store
relative paths.
2018-02-22 10:43:06 +01:00
4e35e70ef3 Add missing 'then' in deploy.sh 2018-02-07 08:36:17 +00:00
8ccd46966b Fix typo. 2018-02-06 19:22:51 +00:00
fe2796f9bc Use absolute path for the archive name 2018-02-05 08:30:09 +00:00
83b5f5be79 right name for ssh key 2018-02-04 04:10:41 +01:00
96b68fc50f convert SSH_KEY from PosixPath to str 2018-02-03 21:51:28 +01:00
220d434b88 write_text method exists only on python 3.5.
And travis is using python 3.4 :/
2018-02-03 19:56:00 +01:00
51ba7132a4 fix typo in compile_all.py 2018-02-02 23:46:47 +01:00
cb468fc49f We must deploy releases archive when a tag is set not on cron. 2018-02-02 12:07:01 +01:00
06cf4d44d0 New travis script written in python and handle release deployement.
`compile_all.sh` script starts to be very complex.
Let's rewrite it in python.

In the same time, update the travis scripts to handle deployement of
release versions.
2018-02-01 18:21:59 +01:00
14d4651504 Fix Android APK output location 2018-01-02 22:51:11 +00:00
680c95b1fc Fix kiwix-tools archive name for linux64 2017-12-17 19:34:44 +01:00
38ba4dbcc2 Change apk output directory to new location 2017-12-15 11:06:49 +00:00
6768631b25 Force installation of meson 0.43.0.
There are some problem in meson 0.44.0.

`meson` change the way it detects static libraries (to something that seems
better to me), but it breaks some of our build that we have to fix.

Until we have fixed our dependencies declaration, let's force meson to
be in 0.43.0.
2017-12-13 15:09:58 +01:00
43937caf6d Make travis create the dist archive.
TODO: Copy the archive at the right place.
2017-12-05 09:32:47 +00:00
bb5b85da50 Make travisCI publish binaries as release versions when tag is pushed.
This publish the same this that nightly build except that :
- Use the `--make-release` option to force kiwix-build to use tagged
  version of subprojects.
- The archives are named using the tag name.
- The archives are pushed to "releases" directory in download.kiwix.org.
2017-12-05 09:32:47 +00:00
19730ed7c3 Compile zim-tools only on native platform.
There is no gcc-5 compiler available for cross-compiling.
2017-11-28 13:13:15 +00:00
53ecc65b9d Zimwriterfs need libmagic-dev.
Install the package `libmagic-dev`.

There is no precompiled libmagic package from cross-compilation and we
are mainly using zimwriterfs only on linux.
2017-11-28 13:11:39 +00:00
89e6068572 Also compile zim-tools and zimwriterfs in the CI.
Nightly will also be publish alongside with other nightly's.

Fixes #89 and #90
2017-11-28 12:26:01 +00:00
e43e502cb7 Fix installation of meson and pillow (pip3) in travis.
I don't know why, but the travis build doesn't work since few days.
It seems that pip3 cannot install in `/usr/local` anymore.
Probably related to last travis change* as a lot of people seems to have
problem with this update and python (even if this is not the same problems)

Anyway, we should not install a dependencies in global environment without
a sudo. Let's install the pip3 dependencies for the user only.

[*] https://docs.travis-ci.com/user/build-environment-updates/2017-09-06/
2017-09-11 11:13:45 +02:00
f16c909090 [CUSTOM_APP] Correctly set the version_name.
The version_name need to be set a compilation time.
By default the version_name is taken from json info file.
But a user may want to change it.
2017-07-18 15:57:12 +02:00
e57c0fccaa Use the real key to sign apk. 2017-06-25 15:49:49 +02:00
71650ffebd Add a option to deactivate APKs upload to android play store.
APKs are pushed to a http accessible address.
This is needed as first association of APKs to an application must be
made manually.
2017-06-25 15:49:49 +02:00
22fffcee51 Add script to build customapp 2017-06-25 15:49:49 +02:00
5cc3ede3e3 Hide the progress information in TravisCI.
With progress information shown, the android build logs are bigger than
4Mo and travisBuild fails. So we have to hide them in travis.
2017-05-09 10:28:05 +02:00
07c3dbe8b9 Compile and publish armhf architecture using travis CI. 2017-04-28 17:22:25 +02:00
c15ddde6eb Make travisCI publish nightly kiwix-android APKs. 2017-04-24 18:21:25 +02:00
86c1547f88 Allow kiwix-build to build android APK.
Previous script (from kiwix repository) created a APK with all architecture embeded.
Now, we generated a APK per architecture. It simplify the build process and
generate smaller APKs.
2017-04-24 15:26:51 +02:00